mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-06 17:08:29 +08:00
把“登陆”统一成“登录”
This commit is contained in:
parent
18552f20d0
commit
42eb2aa49d
@ -4,8 +4,8 @@ MaxKey Flutter project.
|
|||||||
|
|
||||||
### 待做:
|
### 待做:
|
||||||
- [x] 账密登录
|
- [x] 账密登录
|
||||||
- [x] 手机号登陆
|
- [x] 手机号登录
|
||||||
- [x] 保留登陆状态
|
- [x] 保留登录状态
|
||||||
- [x] 账号信息
|
- [x] 账号信息
|
||||||
- [x] 扫码登录
|
- [x] 扫码登录
|
||||||
- [x] 登出
|
- [x] 登出
|
||||||
@ -18,14 +18,14 @@ MaxKey Flutter project.
|
|||||||
- [x] 优化用户界面
|
- [x] 优化用户界面
|
||||||
- [x] 多语言
|
- [x] 多语言
|
||||||
|
|
||||||
登陆页:
|
登录页:
|
||||||
- MaxKey LOGO
|
- MaxKey LOGO
|
||||||
- 用户名、密码、验证码
|
- 用户名、密码、验证码
|
||||||
- 登陆
|
- 登录
|
||||||
- 设置
|
- 设置
|
||||||
|
|
||||||
主页面:
|
主页面:
|
||||||
- 用户卡片(包括扫码登陆按钮)
|
- 用户卡片(包括扫码登录按钮)
|
||||||
- 添加 TOTP 按钮
|
- 添加 TOTP 按钮
|
||||||
- TOTP 列表(可删除某个 TOTP)
|
- TOTP 列表(可删除某个 TOTP)
|
||||||
|
|
||||||
|
|||||||
@ -12,8 +12,8 @@
|
|||||||
"homePageUserCardGreetingNoon": "中午好",
|
"homePageUserCardGreetingNoon": "中午好",
|
||||||
"homePageUserCardGreetingAfternoon": "下午好",
|
"homePageUserCardGreetingAfternoon": "下午好",
|
||||||
"homePageUserCardGreetingEvening": "晚上好",
|
"homePageUserCardGreetingEvening": "晚上好",
|
||||||
"homePageUserCardScanPage": "扫码登陆",
|
"homePageUserCardScanPage": "扫码登录",
|
||||||
"homePageUserCardScanSucceed": "登陆成功",
|
"homePageUserCardScanSucceed": "登录成功",
|
||||||
|
|
||||||
"loginPageSettingBtn": "设置",
|
"loginPageSettingBtn": "设置",
|
||||||
"loginPageLoginViewUsername": "用户名",
|
"loginPageLoginViewUsername": "用户名",
|
||||||
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
"userPageFullUserInfoDialogTitle": "详细信息",
|
"userPageFullUserInfoDialogTitle": "详细信息",
|
||||||
"userPageFullUserInfoDialogDisplayName": "姓名",
|
"userPageFullUserInfoDialogDisplayName": "姓名",
|
||||||
"userPageFullUserInfoDialogUsername": "登陆账号",
|
"userPageFullUserInfoDialogUsername": "登录账号",
|
||||||
"userPageFullUserInfoDialogGender": "性别",
|
"userPageFullUserInfoDialogGender": "性别",
|
||||||
"userPageFullUserInfoDialogEmployeeNumber": "员工编号",
|
"userPageFullUserInfoDialogEmployeeNumber": "员工编号",
|
||||||
"userPageFullUserInfoDialogMobile": "手机号码",
|
"userPageFullUserInfoDialogMobile": "手机号码",
|
||||||
|
|||||||
@ -43,9 +43,9 @@ class MaxKey with ChangeNotifier {
|
|||||||
if (error.type == DioExceptionType.badResponse) {
|
if (error.type == DioExceptionType.badResponse) {
|
||||||
SCAFFOLD_MESSENGER_KEY.currentState?.showSnackBar(
|
SCAFFOLD_MESSENGER_KEY.currentState?.showSnackBar(
|
||||||
SnackBar(
|
SnackBar(
|
||||||
content: const Text("登陆状态过期。请重新登陆"),
|
content: const Text("登录状态过期。请重新登录"),
|
||||||
action: SnackBarAction(
|
action: SnackBarAction(
|
||||||
label: "重新登陆",
|
label: "重新登录",
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
_dio.options.headers.remove(HttpHeaders.authorizationHeader);
|
_dio.options.headers.remove(HttpHeaders.authorizationHeader);
|
||||||
await MaxKeyPersistent.instance.clearToken();
|
await MaxKeyPersistent.instance.clearToken();
|
||||||
|
|||||||
@ -83,7 +83,7 @@ class AuthnService {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (res.data["code"] != 0) {
|
if (res.data["code"] != 0) {
|
||||||
final msg = res.data["message"] ?? "登陆失败";
|
final msg = res.data["message"] ?? "登录失败";
|
||||||
expectedErrorHandler(msg);
|
expectedErrorHandler(msg);
|
||||||
LOGGER.w(msg);
|
LOGGER.w(msg);
|
||||||
return false;
|
return false;
|
||||||
@ -122,7 +122,7 @@ class AuthnService {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (res.data["code"] != 0) {
|
if (res.data["code"] != 0) {
|
||||||
final msg = res.data["message"] ?? "扫码登陆失败";
|
final msg = res.data["message"] ?? "扫码登录失败";
|
||||||
expectedErrorHandler(msg);
|
expectedErrorHandler(msg);
|
||||||
LOGGER.w(msg);
|
LOGGER.w(msg);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@ -22,7 +22,7 @@ class MaxKeyUserInfo {
|
|||||||
/// 姓名
|
/// 姓名
|
||||||
required this.displayName,
|
required this.displayName,
|
||||||
|
|
||||||
/// 登陆账号
|
/// 登录账号
|
||||||
required this.username,
|
required this.username,
|
||||||
|
|
||||||
/// 性别
|
/// 性别
|
||||||
@ -146,7 +146,7 @@ class MaxKeyUserInfo {
|
|||||||
/// 姓名
|
/// 姓名
|
||||||
final String displayName;
|
final String displayName;
|
||||||
|
|
||||||
/// 登陆账号
|
/// 登录账号
|
||||||
final String username;
|
final String username;
|
||||||
|
|
||||||
/// 性别
|
/// 性别
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user