Profil: Logout after password change
This commit is contained in:
@@ -92,8 +92,10 @@ namespace FoodsharingSiegen.Server.Pages
|
||||
private async Task OnPasswordSet(User arg)
|
||||
{
|
||||
var setPasswordR = await UserService?.SetPassword(arg)!;
|
||||
if(setPasswordR.Success)
|
||||
await Notification?.Success("Dein neues Passwort wurde gespeichert")!;
|
||||
if (setPasswordR.Success)
|
||||
NavigationManager?.NavigateTo("/logout");
|
||||
else
|
||||
await Notification?.Success(setPasswordR.ErrorMessage)!;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user