|
@@ -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">`;
|