Merge develop: fix auth connexion admin (#84)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-09 22:37:48 +01:00
co-authored by Cursor
5 changed files with 64 additions and 16 deletions
+6 -2
View File
@@ -20,8 +20,12 @@ class AppUser {
id: json['id'] as String,
email: json['email'] as String,
role: json['role'] as String,
createdAt: DateTime.parse(json['createdAt'] as String),
updatedAt: DateTime.parse(json['updatedAt'] as String),
createdAt: json['createdAt'] != null
? DateTime.parse(json['createdAt'] as String)
: DateTime.now(),
updatedAt: json['updatedAt'] != null
? DateTime.parse(json['updatedAt'] as String)
: DateTime.now(),
changementMdpObligatoire: json['changement_mdp_obligatoire'] as bool? ?? false,
);
}