summaryrefslogtreecommitdiff
path: root/classes/auth
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-11-01 13:03:06 +0300
committerAndrew Dolgov <[email protected]>2019-11-01 13:03:06 +0300
commit68b0380118cc0ff4f8dc99125dce7d97b61e02f3 (patch)
treebaa17c8bceedb81e96269130be59b4543799bfe1 /classes/auth
parent88cd9e586e2e0d0ccea745018ba2f9a91e04ec93 (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.php6
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;
}