Minor changes
This commit is contained in:
parent
427e6790d4
commit
9cfd336e7f
2 changed files with 10 additions and 13 deletions
|
@ -97,18 +97,6 @@ class Routing
|
|||
}
|
||||
|
||||
// OAuth
|
||||
if (
|
||||
$user->isAdmin
|
||||
|| 1 === $config->b_oauth_allow
|
||||
) {
|
||||
$r->add(
|
||||
$r::GET,
|
||||
'/reglog/callback/{name}',
|
||||
'RegLog:callback',
|
||||
'RegLogCallback'
|
||||
);
|
||||
}
|
||||
|
||||
if (1 === $config->b_oauth_allow) {
|
||||
$r->add(
|
||||
$r::PST,
|
||||
|
@ -116,6 +104,15 @@ class Routing
|
|||
'RegLog:redirect',
|
||||
'RegLogRedirect'
|
||||
);
|
||||
|
||||
if ($user->isAdmin) {
|
||||
$r->add(
|
||||
$r::GET,
|
||||
'/reglog/callback/{name}',
|
||||
'RegLog:callback',
|
||||
'RegLogCallback'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// просмотр разрешен
|
||||
|
|
|
@ -206,7 +206,7 @@ class Auth extends Page
|
|||
/**
|
||||
* Проверка пользователя по базе
|
||||
*/
|
||||
public function vLoginCheck(Validator $v, #[SensitiveParameter] string $password ): string
|
||||
public function vLoginCheck(Validator $v, #[SensitiveParameter] string $password): string
|
||||
{
|
||||
if (empty($v->getErrors())) {
|
||||
if ($this->loginWithForm) {
|
||||
|
|
Loading…
Reference in a new issue