diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2019-11-01 13:03:06 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2019-11-01 13:03:06 +0300 |
| commit | 68b0380118cc0ff4f8dc99125dce7d97b61e02f3 (patch) | |
| tree | baa17c8bceedb81e96269130be59b4543799bfe1 /classes/auth | |
| parent | 88cd9e586e2e0d0ccea745018ba2f9a91e04ec93 (diff) | |
add placeholder authentication via app passwords if service is passed
forbid logins via regular passwords for services
remove AUTH_DISABLE_OTP
Diffstat (limited to 'classes/auth')
| -rw-r--r-- | classes/auth/base.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/auth/base.php b/classes/auth/base.php index dbc77f8cd..4cbc23589 100644 --- a/classes/auth/base.php +++ b/classes/auth/base.php @@ -2,6 +2,8 @@ class Auth_Base { private $pdo; + const AUTH_SERVICE_API = '_api'; + function __construct() { $this->pdo = Db::pdo(); } @@ -9,14 +11,14 @@ class Auth_Base { /** * @SuppressWarnings(unused) */ - function check_password($owner_uid, $password) { + function check_password($owner_uid, $password, $service = '') { return false; } /** * @SuppressWarnings(unused) */ - function authenticate($login, $password) { + function authenticate($login, $password, $service = '') { return false; } |