Skip to content

Commit b9e9dad

Browse files
committed
MOBILE-4362 login: Hide authinstructions when not needed
1 parent d59b175 commit b9e9dad

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/core/features/login/pages/credentials/credentials.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ export class CoreLoginCredentialsPage implements OnInit, OnDestroy {
193193

194194
this.siteName = this.siteConfig.sitename;
195195
this.logoUrl = CoreLoginHelper.getLogoUrl(this.siteConfig);
196-
this.authInstructions = this.siteConfig.authinstructions || Translate.instant('core.login.loginsteps');
197196
this.showScanQR = await CoreLoginHelper.displayQRInCredentialsScreen(this.siteConfig.tool_mobile_qrcodetype);
198197

199198
const disabledFeatures = CoreLoginHelper.getDisabledFeatures(this.siteConfig);
@@ -204,6 +203,8 @@ export class CoreLoginCredentialsPage implements OnInit, OnDestroy {
204203
!!this.supportConfig?.canContactSupport(),
205204
this.showForgottenPassword,
206205
);
206+
this.authInstructions = this.siteConfig.authinstructions ||
207+
(this.canSignup ? Translate.instant('core.login.loginsteps') : '');
207208

208209
if (!this.eventThrown && !this.viewLeft) {
209210
this.eventThrown = true;
Loading

0 commit comments

Comments
 (0)