mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-22 05:57:57 +00:00
Require email verification for contact form
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user