mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 17:25:35 +03:00
Fixed admin is forced to change password on mobile app (#287)
* Fixed issues * Upversion and add changed log
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user