Skip to content

Commit 48e6855

Browse files
Andrea Barbassoatarix83
authored andcommitted
Merged in task/dspace-cris-2024_02_x/DSC-2401_improvements (pull request DSpace#3374)
[DSC-2401]do not show new user and forgot password links in login popup if default login is disabled Approved-by: Francesco Molinaro
2 parents b4d589d + 0b019df commit 48e6855

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/shared/log-in/log-in.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class LogInComponent implements OnInit, OnDestroy {
156156
this.canForgot$ = this.authorizationService.isAuthorized(FeatureID.EPersonForgotPassword).pipe(shareReplay({ refCount: false, bufferSize: 1 }));
157157
this.canShowDivider$ = this.canRegister$.pipe(
158158
combineLatestWith(this.canForgot$),
159-
map(([canRegister, canForgot]) => canRegister || canForgot),
159+
map(([canRegister, canForgot]) => (canRegister || canForgot) && (!environment.auth.disableStandardLogin || this.isStandalonePage)),
160160
filter(Boolean),
161161
);
162162
}

0 commit comments

Comments
 (0)