Fixed admin is forced to change password on mobile app (#287)

* Fixed issues

* Upversion and add changed log
This commit is contained in:
Alex
2022-06-30 13:59:02 -05:00
committed by GitHub
parent 97611fa057
commit 992f792c0a
5 changed files with 40 additions and 23 deletions

View File

@@ -219,7 +219,8 @@ class LoginButton extends ConsumerWidget {
if (isAuthenticated) {
// Resume backup (if enable) then navigate
if (ref.watch(authenticationProvider).shouldChangePassword) {
if (ref.watch(authenticationProvider).shouldChangePassword &&
!ref.watch(authenticationProvider).isAdmin) {
AutoRouter.of(context).push(const ChangePasswordRoute());
} else {
ref.watch(backupProvider.notifier).resumeBackup();