mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
1 parent
82460cf8e9
commit
4cb5444f3b
5 files changed
+22
-9
No files matched your search
@@ -18,8 +18,9 @@ async function handlerSwitchAccount(ev) {
|
||||
const target = await selectUser('Hint::icon::switch_account');
|
||||
if (!target) return;
|
||||
try {
|
||||
await request.get('/account', { uid: target._id });
|
||||
window.location.reload();
|
||||
const res = await request.get(`/account/${target._id}`);
|
||||
if (res.url) window.location.href = res.url;
|
||||
else window.location.reload();
|
||||
} catch (error) {
|
||||
Notification.error(error.message);
|
||||
}
|
||||
|
||||
@@ -832,6 +832,7 @@ Submitted: 已递交
|
||||
Subtask {0}: 子任务 {0}
|
||||
Subtasks: 子任务
|
||||
SuperUser: 超级管理员
|
||||
SuperUser's Password: 超级管理员的密码
|
||||
Support: 支持
|
||||
Switch account: 切换账户
|
||||
Tags: 标签
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<form method="post">
|
||||
{{ form.form_text({
|
||||
type:'password',
|
||||
label:'Current Password',
|
||||
label:"SuperUser's Password" if sudoUid else 'Current Password',
|
||||
columns:10,
|
||||
name:'password',
|
||||
required:true
|
||||
@@ -57,7 +57,7 @@
|
||||
<form method="post">
|
||||
{{ form.form_text({
|
||||
type:'password',
|
||||
label:'Current Password',
|
||||
label:"SuperUser's Password" if sudoUid else 'Current Password',
|
||||
columns:10,
|
||||
name:'current',
|
||||
required:true
|
||||
|
||||
Reference in new issue
Block a user