Set autoSignin to true by default.

This commit is contained in:
Yang Luo 2021-08-06 20:04:08 +08:00
parent ca9fcf7edc
commit 5afe3ed650
8 changed files with 10 additions and 9 deletions

View File

@ -232,7 +232,8 @@ class LoginPage extends React.Component {
initialValues={{
organization: application.organization,
application: application.name,
remember: true
remember: true,
autoSignin: true,
}}
onFinish={(values) => {this.onFinish(values)}}
style={{width: "250px"}}
@ -284,7 +285,7 @@ class LoginPage extends React.Component {
<Form.Item>
<Form.Item name="autoSignin" valuePropName="checked" noStyle>
<Checkbox style={{float: "left"}} disabled={!application.enablePassword}>
{i18next.t("login:Auto login")}
{i18next.t("login:Auto sign in")}
</Checkbox>
</Form.Item>
<a style={{float: "right"}} onClick={() => {

View File

@ -130,7 +130,7 @@
"username, Email or phone": "username, Email or phone",
"Please input your password!": "Please input your password!",
"Password": "Password",
"Auto login": "Auto login",
"Auto sign in": "Auto sign in",
"Forgot password?": "Forgot password?",
"Sign In": "Sign In",
"No account yet?": "No account yet?",

View File

@ -136,7 +136,7 @@
"username, Email or phone": "username, Email or phone",
"Please input your password!": "Please input your password!",
"Password": "Password",
"Auto login": "Auto login",
"Auto sign in": "Auto sign in",
"Forgot password?": "Forgot password?",
"Sign In": "Sign In",
"No account yet?": "No account yet?",

View File

@ -130,7 +130,7 @@
"username, Email or phone": "username, Email or phone",
"Please input your password!": "Please input your password!",
"Password": "Password",
"Auto login": "Auto login",
"Auto sign in": "Auto sign in",
"Forgot password?": "Forgot password?",
"Sign In": "Sign In",
"No account yet?": "No account yet?",

View File

@ -130,7 +130,7 @@
"username, Email or phone": "username, Email or phone",
"Please input your password!": "Please input your password!",
"Password": "Password",
"Auto login": "Auto login",
"Auto sign in": "Auto sign in",
"Forgot password?": "Forgot password?",
"Sign In": "Sign In",
"No account yet?": "No account yet?",

View File

@ -130,7 +130,7 @@
"username, Email or phone": "username, Email or phone",
"Please input your password!": "Please input your password!",
"Password": "Password",
"Auto login": "Auto login",
"Auto sign in": "Auto sign in",
"Forgot password?": "Forgot password?",
"Sign In": "Sign In",
"No account yet?": "No account yet?",

View File

@ -130,7 +130,7 @@
"username, Email or phone": "username, Email or phone",
"Please input your password!": "Please input your password!",
"Password": "Password",
"Auto login": "Auto login",
"Auto sign in": "Auto sign in",
"Forgot password?": "Forgot password?",
"Sign In": "Sign In",
"No account yet?": "No account yet?",

View File

@ -130,7 +130,7 @@
"username, Email or phone": "用户名、Email或手机号",
"Please input your password!": "请输入您的密码!",
"Password": "密码",
"Auto login": "下次自动登录",
"Auto sign in": "下次自动登录",
"Forgot password?": "忘记密码?",
"Sign In": "登录",
"No account yet?": "没有账号?",