diff --git a/public/auth/password.php b/public/auth/password.php index f341b3b4..bd8cfb1a 100644 --- a/public/auth/password.php +++ b/public/auth/password.php @@ -2,7 +2,7 @@ require_once '../../misuzu.php'; if (user_session_active()) { - header(sprintf('Location: %s', url('settings-mode', ['mode' => 'account']))); + header(sprintf('Location: %s', url('settings-account'))); return; } diff --git a/src/url.php b/src/url.php index b8984f7c..1a3c3e2c 100644 --- a/src/url.php +++ b/src/url.php @@ -81,7 +81,12 @@ define('MSZ_URLS', [ 'user-relation-follow' => ['/relations.php', ['u' => '', 'm' => '[MSZ_USER_RELATION_FOLLOW]', 'c' => '{user_relation}']], 'settings-index' => ['/settings.php'], - 'settings-mode' => ['/settings.php', [], ''], + 'settings-account' => ['/settings.php', [], 'account'], + 'settings-roles' => ['/settings.php', [], 'roles'], + 'settings-tfa' => ['/settings.php', [], 'tfa'], + 'settings-sessions' => ['/settings.php', [], 'sessions'], + 'settings-login-attempts' => ['/settings.php', [], 'login-attempts'], + 'settings-account-log' => ['/settings.php', [], 'account-log'], 'comment-create' => ['/comments.php', ['m' => 'create']], 'comment-vote' => ['/comments.php', ['c' => '', 'csrf' => '{comments}', 'm' => 'vote', 'v' => '']],