Base solution for your next web application
Open Closed

login error #4687


User avatar
0
avanekar02 created

hi

downoaded app when i run it and enter admin and 123qwe it throws an error "you must change your password before logging on"

attached image


1 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    hi,

    currently Xamarin App doesn't allow users to login who need to change password for the first login. But it's going to be implemented in the future releases (I can't give you exact date)

    to make a long story short, you need to show a new page for the users who's ShouldResetPassword field is true

    implement this in on following line <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Mobile.Shared/Services/Account/AccountService.cs#L52">https://github.com/aspnetzero/aspnet-ze ... ice.cs#L52</a>

    It should be something like this

    if (AuthenticateResultModel.ShouldResetPassword)
                {
                 await _navigationService.SetMainPage<YourNewPasswordChange>(AuthenticateResultModel);
                    return;
    }