mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-26 16:07:13 +00:00
dev(oidc): hide unnecessary div
I decided not to remove it because I really don't want to introduce a bug right now while everything is finally working smoothly... I'm making a note to properly clean this up later when it can be more easily tested in isolation from everything else.
This commit is contained in:
@@ -43,7 +43,7 @@ async function UIWindowChangeEmail (options) {
|
||||
h += `<input id="confirm-new-email-${internal_id}" type="text" name="new-email" class="new-email" autocomplete="off" />`;
|
||||
h += '</div>';
|
||||
// password / OIDC revalidate
|
||||
h += '<div class="change-email-auth-row" style="overflow: hidden; margin-top: 10px; margin-bottom: 30px;">';
|
||||
h += '<div class="change-email-auth-row" style="display: none; overflow: hidden; margin-top: 10px; margin-bottom: 30px;">';
|
||||
h += '<div class="change-email-password-wrap">';
|
||||
h += `<label>${i18n('account_password')}</label>`;
|
||||
h += `${place_password_entry.html}`;
|
||||
|
||||
@@ -40,7 +40,7 @@ async function UIWindowDisable2FA (options) {
|
||||
h += '<div style="overflow: hidden; margin-top: 10px; margin-bottom: 20px;">';
|
||||
h += `<p style="margin:0;font-size:14px;color:#333;">${i18n('disable_2fa_instructions')}</p>`;
|
||||
h += '</div>';
|
||||
h += '<div class="disable-2fa-auth-row" style="overflow: hidden; margin-top: 10px; margin-bottom: 30px;">';
|
||||
h += '<div class="disable-2fa-auth-row" style="display: none; overflow: hidden; margin-top: 10px; margin-bottom: 30px;">';
|
||||
h += '<div class="disable-2fa-password-wrap">';
|
||||
h += `<label>${i18n('account_password')}</label>`;
|
||||
h += `${place_password_entry.html}`;
|
||||
|
||||
@@ -32,7 +32,7 @@ async function UIWindowChangePassword (options) {
|
||||
// success msg
|
||||
h += '<div class="form-success-msg"></div>';
|
||||
// current password / OIDC revalidate
|
||||
h += '<div class="change-password-auth-row" style="overflow: hidden; margin-bottom: 20px;">';
|
||||
h += '<div class="change-password-auth-row" style="display: none; overflow: hidden; margin-bottom: 20px;">';
|
||||
h += '<div class="change-password-current-wrap">';
|
||||
h += `<label for="current-password-${internal_id}">${i18n('current_password')}</label>`;
|
||||
h += `<input id="current-password-${internal_id}" class="current-password" type="password" name="current-password" autocomplete="current-password" />`;
|
||||
|
||||
@@ -33,7 +33,7 @@ async function UIWindowChangeUsername (options) {
|
||||
h += `<label for="confirm-new-username-${internal_id}">${i18n('new_username')}</label>`;
|
||||
h += `<input id="confirm-new-username-${internal_id}" type="text" name="new-username" class="new-username" autocomplete="off" />`;
|
||||
h += '</div>';
|
||||
h += '<div class="change-username-auth-row" style="overflow: hidden; margin-top: 10px; margin-bottom: 30px;">';
|
||||
h += '<div class="change-username-auth-row" style="display: none; overflow: hidden; margin-top: 10px; margin-bottom: 30px;">';
|
||||
h += `<label for="change-username-password-${internal_id}">${i18n('account_password')}</label>`;
|
||||
h += '<div class="change-username-password-wrap">';
|
||||
h += `<input id="change-username-password-${internal_id}" type="password" name="password" class="change-username-password" autocomplete="current-password" placeholder="" />`;
|
||||
|
||||
Reference in New Issue
Block a user