feat(app): clean architecture with typed repositories, DTO models and calendar event logos
This commit is contained in:
@@ -67,6 +67,14 @@ class AuthRepository {
|
||||
}
|
||||
}
|
||||
|
||||
Future<bool> changeInitialPassword(String userId, String newPassword) async {
|
||||
final res = await apiClient.post('/api/v1/auth/change-initial-password', data: {
|
||||
'userId': userId,
|
||||
'newPassword': newPassword,
|
||||
});
|
||||
return res.statusCode == 200;
|
||||
}
|
||||
|
||||
Future<void> logout() async {
|
||||
await storageService.clearAll();
|
||||
}
|
||||
@@ -76,3 +84,4 @@ class RequiresPasswordChangeException implements Exception {
|
||||
final String userId;
|
||||
RequiresPasswordChangeException(this.userId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user