feat: implement authentication modules and add daily statistics dashboard component
Build and Release / release (push) Successful in 28s

This commit is contained in:
2026-05-14 11:40:37 +07:00
parent 6363377b9a
commit a7c3aecc6e
9 changed files with 70 additions and 26 deletions
+3 -4
View File
@@ -71,7 +71,6 @@ export default function SignInForm() {
toast.success("Đăng nhập thành công!");
const data = await apiGetCurrentUser();
// console.log("Current User Data:", data);
if (data?.data) {
dispatch(setUserData(data.data));
router.push("/");
@@ -79,7 +78,7 @@ export default function SignInForm() {
} else {
toast.error("Email hoặc mật khẩu không đúng.");
}
} catch (error) {
} catch {
setErrorMsg("Lỗi khi đăng nhập. Vui lòng thử lại.");
toast.error("Đăng nhập thất bại. Vui lòng kiểm tra lại thông tin.");
} finally {
@@ -206,7 +205,7 @@ export default function SignInForm() {
</span>
</div>
<Link
href="/reset-password"
href="/auth/reset-password"
className="text-sm text-brand-500 hover:text-brand-600 dark:text-brand-400"
>
Forgot password?
@@ -256,7 +255,7 @@ export default function SignInForm() {
<p className="text-sm font-normal text-center text-gray-700 dark:text-gray-400 sm:text-start">
Don&apos;t have an account? {""}
<Link
href="/signup"
href="/auth/signup"
className="text-brand-500 hover:text-brand-600 dark:text-brand-400"
>
Sign Up