fix(mobile): URL changement mdp corrigée + v3.0 — multi-org, AppAuth, sécurité prod
Auth: - profile_repository.dart: /api/auth/change-password → /api/membres/auth/change-password Multi-org (Phase 3): - OrgSelectorPage, OrgSwitcherBloc, OrgSwitcherEntry - org_context_service.dart: headers X-Active-Organisation-Id + X-Active-Role Navigation: - MorePage: navigation conditionnelle par typeOrganisation - Suppression adaptive_navigation (remplacé par main_navigation_layout) Auth AppAuth: - keycloak_webview_auth_service: fixes AppAuth Android - AuthBloc: gestion REAUTH_REQUIS + premierLoginComplet Onboarding: - Nouveaux états: payment_method_page, onboarding_shared_widgets - SouscriptionStatusModel mis à jour StatutValidationSouscription Android: - build.gradle: ProGuard/R8, network_security_config - Gradle wrapper mis à jour
This commit is contained in:
@@ -175,10 +175,10 @@ class ProfileRepositoryImpl implements IProfileRepository {
|
||||
@override
|
||||
Future<void> changePassword(String id, String oldPassword, String newPassword) async {
|
||||
try {
|
||||
// Appel direct à l'API Keycloak pour changer le mot de passe
|
||||
// Via l'endpoint /api/auth/change-password qui proxy vers Keycloak
|
||||
// Changement de mot de passe via l'API UnionFlow
|
||||
// Endpoint: POST /api/membres/auth/change-password (direct Keycloak Admin)
|
||||
final response = await _apiClient.post(
|
||||
'/api/auth/change-password',
|
||||
'/api/membres/auth/change-password',
|
||||
data: {
|
||||
'userId': id,
|
||||
'oldPassword': oldPassword,
|
||||
|
||||
Reference in New Issue
Block a user