Skip to content

Commit

Permalink
Exclude password reset link from login form where users don't have th…
Browse files Browse the repository at this point in the history
…e ability to manage accounts
  • Loading branch information
dannon committed Feb 14, 2024
1 parent 3b47685 commit 2c5dd47
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/src/components/Login/LoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
v-model="password"
name="password"
type="password" />
<b-form-text>
<b-form-text v-if="showResetLink">
<span v-localize>Forgot password?</span>
<a
v-localize
Expand Down Expand Up @@ -142,6 +142,10 @@ export default {
type: Boolean,
default: false,
},
showResetLink: {
type: Boolean,
default: true,
},
termsUrl: {
type: String,
default: null,
Expand Down
5 changes: 5 additions & 0 deletions client/src/components/Login/LoginIndex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
:show-welcome-with-login="showWelcomeWithLogin"
:terms-url="termsUrl"
:welcome-url="welcomeUrl"
:show-reset-link="showResetLink"
@toggle-login="toggleLogin" />
<RegisterForm
v-else
Expand Down Expand Up @@ -43,6 +44,10 @@ export default {
type: Boolean,
required: true,
},
showResetLink: {
type: Boolean,
default: true,
},
enableOidc: {
type: Boolean,
default: false,
Expand Down
1 change: 1 addition & 0 deletions client/src/entry/analysis/modules/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
:server-mail-configured="config.server_mail_configured"
:session-csrf-token="sessionCsrfToken"
:show-welcome-with-login="config.show_welcome_with_login"
:show-reset-link="config.enable_account_interface"
:terms-url="config.terms_url"
:welcome-url="config.welcome_url" />
</div>
Expand Down

0 comments on commit 2c5dd47

Please sign in to comment.