mirror of
git://f0xx.org/ac/ac-be-auth
synced 2026-07-29 06:57:45 +03:00
fix(auth-ui): login register link, QR approve TOTP form
Remove default admin hint; show Create account; approve page accepts 6-digit code without prior mobile login. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
$bp = Auth::basePath();
|
||||
$auth = Auth::authUrl();
|
||||
$loginRedirect = $loginRedirect ?? '';
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-theme="dark">
|
||||
@@ -44,6 +45,9 @@ $auth = Auth::authUrl();
|
||||
</label>
|
||||
</div>
|
||||
<form class="login-card" method="post" action="<?= h($auth) ?>/login">
|
||||
<?php if ($loginRedirect !== ''): ?>
|
||||
<input type="hidden" name="redirect" value="<?= h($loginRedirect) ?>">
|
||||
<?php endif; ?>
|
||||
<h1><?= h(cfg('app_name')) ?></h1>
|
||||
<p class="muted" data-i18n="login.sign_in_hint">Sign in to view anonymous issue reports</p>
|
||||
<?php if (!empty($loginError)): ?>
|
||||
@@ -52,8 +56,7 @@ $auth = Auth::authUrl();
|
||||
<label><span data-i18n="login.username">Username</span><input name="username" autocomplete="username" required></label>
|
||||
<label><span data-i18n="login.password">Password</span><input name="password" type="password" autocomplete="current-password" required></label>
|
||||
<button type="submit" data-i18n="login.submit">Sign in</button>
|
||||
<p class="hint" data-i18n="login.hint_default">Default: admin / admin</p>
|
||||
<p class="hint"><a href="<?= h($auth) ?>/register" data-i18n="login.register">Register</a></p>
|
||||
<p class="hint"><a href="<?= h($auth) ?>/register" data-i18n="login.register">Create account</a></p>
|
||||
</form>
|
||||
<?php platform_render_footer(); ?>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user