feat: normalize email addresses to lowercase in user registration and profile updates
- Updated user registration and profile update handlers to convert email addresses to lowercase before saving to the database. - Added integration tests to verify login functionality after email changes, ensuring case insensitivity. - Introduced a new Account page to replace the Security page, consolidating user account management features. - Removed the old Security page and updated routing in the Settings layout. - Enhanced the SystemStatus component to provide user feedback on update availability. - Added password change functionality in the Account page, allowing users to update their passwords securely.
This commit is contained in:
@@ -3,12 +3,15 @@ import { createContext } from 'react';
|
||||
export interface User {
|
||||
user_id: number;
|
||||
role: string;
|
||||
name?: string;
|
||||
email?: string;
|
||||
}
|
||||
|
||||
export interface AuthContextType {
|
||||
user: User | null;
|
||||
login: () => Promise<void>;
|
||||
logout: () => void;
|
||||
changePassword: (oldPassword: string, newPassword: string) => Promise<void>;
|
||||
isAuthenticated: boolean;
|
||||
isLoading: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user