Skip to content

Commit c352dfe

Browse files
committed
Send confirmation code and hide close button
1 parent 9f2ec29 commit c352dfe

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/gui/src/UI/UIWindowEmailConfirmationRequired.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ function UIWindowEmailConfirmationRequired (options) {
3030
const submit_btn_txt = 'Confirm Email';
3131

3232
let h = '';
33-
h += '<div class="qr-code-window-close-btn generic-close-window-button"> &times; </div>';
33+
if(options.show_close_button !== false) {
34+
h += '<div class="qr-code-window-close-btn generic-close-window-button"> &times; </div>';
35+
}
3436
h += '<div style="-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: #3e5362; max-width: 350px; margin: 0 auto;">';
3537
h += `<img src="${html_encode(window.icons['mail.svg'])}" style="display:block; margin:10px auto 10px;">`;
3638
h += `<h3 style="text-align:center; font-weight: 500; font-size: 20px;">${i18n('confirm_your_email_address')}</h3>`;

src/gui/src/initgui.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ window.initgui = async function (options) {
455455
// show signup window
456456
if ( await UIWindowSignup({
457457
reload_on_success: false,
458-
send_confirmation_code: false,
458+
send_confirmation_code: true,
459459
show_close_button: false,
460460
window_options: {
461461
has_head: false,
@@ -593,6 +593,7 @@ window.initgui = async function (options) {
593593
if ( ! window.is_auth() ) {
594594
opts.window_options = { cover_page: true, has_head: false };
595595
}
596+
opts.send_confirmation_code = true;
596597
await UIWindowSignup(Object.keys(opts).length ? opts : undefined);
597598
}
598599
// -------------------------------------------------------------------------------------
@@ -642,6 +643,7 @@ window.initgui = async function (options) {
642643
let is_verified;
643644
do {
644645
is_verified = await UIWindowEmailConfirmationRequired({
646+
show_close_button: false,
645647
stay_on_top: true,
646648
has_head: false,
647649
window_options: {
@@ -810,6 +812,7 @@ window.initgui = async function (options) {
810812
let is_verified;
811813
do {
812814
is_verified = await UIWindowEmailConfirmationRequired({
815+
show_close_button: false,
813816
stay_on_top: true,
814817
has_head: false,
815818
logout_in_footer: true,
@@ -1287,7 +1290,7 @@ window.initgui = async function (options) {
12871290

12881291
await UIWindowSignup({
12891292
reload_on_success: !window.embedded_in_popup,
1290-
send_confirmation_code: false,
1293+
send_confirmation_code: true,
12911294
window_options: {
12921295
has_head: false,
12931296
cover_page: true,

0 commit comments

Comments
 (0)