@strapi/admin 4.2.0-alpha.8 → 4.2.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -242,9 +242,14 @@ const AuthPage = ({ hasAdmin, setHasAdmin }) => {
242
242
  };
243
243
 
244
244
  const redirectToPreviousLocation = () => {
245
- const locationBeforeAuthenticated = decodeURIComponent(query.get('redirectTo'));
246
- const redirectUrl = locationBeforeAuthenticated || '/';
247
- push(redirectUrl);
245
+ if (authType === 'login') {
246
+ const redirectTo = query.get('redirectTo');
247
+ const redirectUrl = redirectTo ? decodeURIComponent(redirectTo) : '/';
248
+
249
+ push(redirectUrl);
250
+ } else {
251
+ push('/');
252
+ }
248
253
  };
249
254
 
250
255
  // Redirect the user to the login page if
@@ -1,15 +1,24 @@
1
1
  {
2
2
  "Analytics": "Phân Tích",
3
+ "Auth.components.Oops.text": "Tài khoản của bạn đã bị khoá",
4
+ "Auth.components.Oops.text.admin": "Nếu có sự nhầm lẫn, hãy liên hệ người quản trị",
3
5
  "Auth.form.button.forgot-password": "Gửi Email",
6
+ "Auth.form.button.go-home": "QUAY VỀ TRANG CHỦ",
4
7
  "Auth.form.button.login": "Đăng nhập",
8
+ "Auth.form.button.login.providers.error": "Không thể kết nối bạn với dịch vụ đã chọn.",
9
+ "Auth.form.button.login.providers.see-more": "Xem thêm",
10
+ "Auth.form.button.login.strapi": "Đăng nhập với Strapi",
11
+ "Auth.form.button.password-recovery": "Khôi phục mật khẩu",
5
12
  "Auth.form.button.register": "Sẵn sàng để bắt đầu",
6
13
  "Auth.form.button.reset-password": "Đổi mật khẩu",
14
+ "Auth.form.confirmPassword.label": "Nhập lại mật khẩu",
15
+ "Auth.form.currentPassword.label": "Mật khẩu hiện tại",
7
16
  "Auth.form.email.label": "Email",
8
17
  "Auth.form.email.placeholder": "kai@doe.com",
9
- "Auth.form.error.blocked": "Tài khoản của bạn bị khóa bởi người quản trị",
18
+ "Auth.form.error.blocked": "Tài khoản của bạn bị khóa bởi người quản trị.",
10
19
  "Auth.form.error.code.provide": "Mã sai đã được cung cấp.",
11
20
  "Auth.form.error.confirmed": "Email của tài khoản của bạn chưa được xác nhận.",
12
- "Auth.form.error.email.invalid": "Eemail sai.",
21
+ "Auth.form.error.email.invalid": "Email sai.",
13
22
  "Auth.form.error.email.provide": "Vui lòng cung cấp tên đăng nhập hoặc email.",
14
23
  "Auth.form.error.email.taken": "Email đã được dùng.",
15
24
  "Auth.form.error.invalid": "Định danh hoặc mật khẩu sai.",
@@ -21,18 +30,35 @@
21
30
  "Auth.form.error.ratelimit": "Thử quá nhiều lần, vui lòng thử lại trong một phút",
22
31
  "Auth.form.error.user.not-exist": "Email này chưa tồn tại.",
23
32
  "Auth.form.error.username.taken": "Tên đăng nhập đã bị lấy.",
33
+ "Auth.form.firstname.label": "Họ",
34
+ "Auth.form.firstname.placeholder": "v.d. Kai",
24
35
  "Auth.form.forgot-password.email.label": "Nhập email của bạn",
25
36
  "Auth.form.forgot-password.email.label.success": "Email đã gửi thành công đến",
37
+ "Auth.form.lastname.label": "Tên",
38
+ "Auth.form.lastname.placeholder": "v.d. Doe",
39
+ "Auth.form.password.hide-password": "Ẩn mật khẩu",
40
+ "Auth.form.password.hint": "Mật khẩu phải chứa ít nhất 8 ký tự, 1 viết hoa, 1 viết thường, và 1 số",
26
41
  "Auth.form.password.label": "Mật khẩu",
42
+ "Auth.form.password.show-password": "Hiển thị password",
27
43
  "Auth.form.register.news.label": "Cập nhật cho tôi về chức năng mới và những cải thiện sắp tới (thông qua việc này bạn đã chấp nhận {terms} và {policy}).",
44
+ "Auth.form.register.subtitle": "Thông tin của bạn chỉ được sử dụng để đăng nhập vào trang quản trị. Tất cả các dữ liệu được lưu ở cơ sở dữ liệu của bạn.",
28
45
  "Auth.form.rememberMe.label": "Nhớ tôi",
29
46
  "Auth.form.username.label": "Tên đăng nhập",
30
47
  "Auth.form.username.placeholder": "Kai Doe",
31
- "Auth.link.forgot-password": "Quên mật khẩu của bạn?",
48
+ "Auth.form.welcome.subtitle": "Đăng nhập vào tài khoản Strapi của bạn",
49
+ "Auth.form.welcome.title": "Chào mừng!",
50
+ "Auth.link.forgot-password": "Quên mật khẩu?",
32
51
  "Auth.link.ready": "Sẵn sàng đăng nhập?",
52
+ "Auth.link.signin": "Đăng nhập",
53
+ "Auth.link.signin.account": "Đã có tài khoản?",
54
+ "Auth.login.sso.divider": "Hoặc đăng nhập với",
55
+ "Auth.login.sso.loading": "Đang tải các dịch vụ cung cấp...",
56
+ "Auth.login.sso.subtitle": "Đăng nhập qua SSO",
33
57
  "Auth.privacy-policy-agreement.policy": "chính sách bảo mật",
34
58
  "Auth.privacy-policy-agreement.terms": "các điều khoản",
59
+ "Auth.reset-password.title": "Đặt lại mật khẩu",
35
60
  "Content Manager": "Quản Lý Nội Dung",
61
+ "Documentation": "Tài liệu",
36
62
  "Email": "Email",
37
63
  "Files Upload": "Tải Tâp Tin Lên",
38
64
  "HomePage.helmet.title": "Trang chủ",
@@ -257,4 +283,4 @@
257
283
  "notification.error.layout": "Không thể khôi phục",
258
284
  "notification.form.error.fields": "Bảng nhập liệu có vài lỗi",
259
285
  "request.error.model.unknown": "Cấu trúc này không tồn tại"
260
- }
286
+ }