Minor changes

This commit is contained in:
Visman 2023-10-10 16:31:35 +07:00
parent 427e6790d4
commit 9cfd336e7f
2 changed files with 10 additions and 13 deletions

View file

@ -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'
);
}
}
// просмотр разрешен

View file

@ -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) {