mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Fixed admin is forced to change password on mobile app (#287)
* Fixed issues * Upversion and add changed log
This commit is contained in:
parent
97611fa057
commit
992f792c0a
5 changed files with 40 additions and 23 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue