Merge pull request #306 from zinreq/main

Do not show the "Change Password" option when user is temporary
This commit is contained in:
Nariman Jelveh 2024-04-20 19:46:54 -07:00 committed by GitHub
commit ced7265eb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,13 +29,16 @@ export default {
icon: 'user.svg',
html: () => {
let h = `<h1>${i18n('account')}</h1>`;
// change password button
h += `<div class="settings-card">`;
h += `<strong>${i18n('password')}</strong>`;
h += `<div style="flex-grow:1;">`;
h += `<button class="button change-password" style="float:right;">${i18n('change_password')}</button>`;
if(!user.is_temp){
h += `<div class="settings-card">`;
h += `<strong>${i18n('password')}</strong>`;
h += `<div style="flex-grow:1;">`;
h += `<button class="button change-password" style="float:right;">${i18n('change_password')}</button>`;
h += `</div>`;
h += `</div>`;
h += `</div>`;
}
// change username button
h += `<div class="settings-card">`;