Skip to content

Commit c8a5356

Browse files
Andrea Barbassoatarix83
authored andcommitted
Merged in task/dspace-cris-2023_02_x/DSC-2401_improvements (pull request DSpace#3373)
[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 8396bbb + cc844e7 commit c8a5356

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
@@ -121,7 +121,7 @@ export class LogInComponent implements OnInit, OnDestroy {
121121
this.canForgot$ = this.authorizationService.isAuthorized(FeatureID.EPersonForgotPassword).pipe(shareReplay(1));
122122
this.canShowDivider$ = this.canRegister$.pipe(
123123
combineLatestWith(this.canForgot$),
124-
map(([canRegister, canForgot]) => canRegister || canForgot),
124+
map(([canRegister, canForgot]) => (canRegister || canForgot) && (!environment.auth.disableStandardLogin || this.isStandalonePage)),
125125
filter(Boolean)
126126
);
127127
}

0 commit comments

Comments
 (0)