Skip to content

Commit

Permalink
Squash and cherry-pick fix from #7446 (Fixes #7283)
Browse files Browse the repository at this point in the history
Co-authored-by: mdctleo <mdctleo@users.noreply.github.com>
  • Loading branch information
jonboiser and mdctleo committed Sep 28, 2020
1 parent 96a0acb commit 6db8ff6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ If you have contributed to Kolibri, feel free to add your name and Github accoun
| Julián Duque | julianduque |
| Karla Avila | k2avila |
| Kevin Ollivier | kollivier |
| Leo Lin | mdctleo |
| Paul Luna | luna215 |
| Lingyi Wang | lyw07 |
| Magali Boizot-Roche | magali-br |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@
:key="setting"
:label="$tr('learnerNeedPasswordToLogin')"
:checked="!settings['learner_can_login_with_no_password']"
@change="toggleSetting('learner_can_login_with_no_password')"
@change="toggleLearnerLoginPassword()"
/>
<KCheckbox
:key="setting + 'learner_can_edit_password'"
:disabled="enableChangePassword"
:label="$tr('learnerCanEditPassword')"
:checked="settings['learner_can_edit_password']"
:checked="!settings['learner_can_login_with_no_password']
&& settings['learner_can_edit_password']"
class="checkbox-password"
@change="toggleSetting('learner_can_edit_password')"
/>
Expand Down Expand Up @@ -208,6 +209,15 @@
value: !this.settings[settingName],
});
},
toggleLearnerLoginPassword() {
this.toggleSetting('learner_can_login_with_no_password');
if (
this.settings['learner_can_edit_password'] &&
!this.settings['learner_can_login_with_no_password']
) {
this.toggleSetting('learner_can_edit_password');
}
},
dismissNotification() {
this.$store.commit('facilityConfig/CONFIG_PAGE_NOTIFY', null);
},
Expand Down

0 comments on commit 6db8ff6

Please sign in to comment.