first upload all files

This commit is contained in:
NW
2023-06-11 13:14:03 +01:00
parent f14dbc52b5
commit c08b36d1b6
1705 changed files with 106852 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace Modules\User;
class LoginProvider
{
private static $providers = ['facebook', 'google'];
public static function add($provider)
{
array_push(self::$providers, $provider);
return self::$providers;
}
public static function all()
{
return self::$providers;
}
public static function enabled()
{
return array_filter(self::$providers, function ($provider) {
return setting("{$provider}_login_enabled");
});
}
public static function isEnable($provider)
{
return in_array($provider, self::enabled());
}
}