FIX: show sign up modal when local logins are disabled (#12611)
This commit is contained in:
parent
98ae4e2829
commit
1ebb40a713
|
@ -97,6 +97,9 @@ export default Controller.extend(
|
||||||
if (hasAtLeastOneLoginButton && !hasAuthOptions) {
|
if (hasAtLeastOneLoginButton && !hasAuthOptions) {
|
||||||
classes.push("has-alt-auth");
|
classes.push("has-alt-auth");
|
||||||
}
|
}
|
||||||
|
if (!this.canCreateLocal) {
|
||||||
|
classes.push("no-local-logins");
|
||||||
|
}
|
||||||
return classes.join(" ");
|
return classes.join(" ");
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
{{loading-spinner size="large"}}
|
{{loading-spinner size="large"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if showCreateForm}}
|
|
||||||
<div class="create-account-form">
|
<div class="create-account-form">
|
||||||
<div class="login-welcome-header">
|
<div class="login-welcome-header">
|
||||||
<h1 class="login-title">{{i18n "create_account.header_title"}}</h1> <img src={{wavingHandURL}} alt="" class="waving-hand">
|
<h1 class="login-title">{{i18n "create_account.header_title"}}</h1> <img src={{wavingHandURL}} alt="" class="waving-hand">
|
||||||
|
@ -18,6 +17,8 @@
|
||||||
{{login-buttons externalLogin=(action "externalLogin")}}
|
{{login-buttons externalLogin=(action "externalLogin")}}
|
||||||
</div>
|
</div>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
{{#if showCreateForm}}
|
||||||
|
|
||||||
<div class="login-form">
|
<div class="login-form">
|
||||||
|
|
||||||
<form>
|
<form>
|
||||||
|
@ -147,7 +148,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{#if showCreateForm}}
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
{{d-button
|
{{d-button
|
||||||
class="btn-large btn-primary"
|
class="btn-large btn-primary"
|
||||||
|
@ -167,9 +168,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{plugin-outlet name="create-account-after-modal-footer" tagName=""}}
|
{{plugin-outlet name="create-account-after-modal-footer" tagName=""}}
|
||||||
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
|
||||||
{{/d-modal-body}}
|
{{/d-modal-body}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
{{/create-account}}
|
{{/create-account}}
|
||||||
|
|
|
@ -105,6 +105,14 @@
|
||||||
&.awaiting-approval {
|
&.awaiting-approval {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.no-local-logins {
|
||||||
|
// when third-party auth is available, but not local logins
|
||||||
|
.login-left-side,
|
||||||
|
.login-welcome-header {
|
||||||
|
padding: 3em 1em 3em 3em;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Login Form Styles
|
// Login Form Styles
|
||||||
|
|
Loading…
Reference in New Issue