Require email verification for contact form

This commit is contained in:
KernelDeimos
2024-05-09 19:40:34 -04:00
parent 8b6bbe003d
commit cd2daa1910
3 changed files with 10 additions and 1 deletions
+8
View File
@@ -17,12 +17,20 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import UIAlert from './UIAlert.js';
import UIWindow from './UIWindow.js'
async function UIWindowQR(options){
return new Promise(async (resolve) => {
options = options ?? {};
if ( ! window.user.email_confirmed ) {
await UIAlert({
message: i18n('contact_us_verification_required'),
});
return resolve();
}
let h = '';
h += `<div style="padding: 20px; margin-top: 0;">`;
// success