-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Labels
Description
It seems the login is done by hard coding!
'validate' => function ($username, $password) {
return $username == 'admin' && $password == 'admin';
},
While I expect it does the validation with a user table in the DB!
Also I activated this config in the api.php:
'middlewares' => 'dbAuth,authorization',
'authorization.tableHandler' => function ($operation, $tableName) {
return $tableName != 'users';
},
But then it will show the following error in the vanila.html after login by admin:admin:
{ "code": 1012, "message": "Authentication failed'" }
So it seems I need to connect the auth.php and api.php somehow to have the same session data and also do the authentication regarding a DB table!
mevdschee