mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-06-20 11:33:29 -05:00
added email validation popup
This commit is contained in:
parent
214456b2b8
commit
6dbfd5dd6c
|
|
@ -283,7 +283,7 @@ button, .btn, .btn-alt {
|
|||
background: #673db6;
|
||||
color: white;
|
||||
padding: 12px 80px;
|
||||
border-radius: 10px;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.17);
|
||||
}
|
||||
.btn-alt {
|
||||
|
|
@ -299,6 +299,10 @@ button, .btn, .btn-alt {
|
|||
color: white;
|
||||
}
|
||||
|
||||
.btn-alt.small, .btn.small {
|
||||
padding: .5em 1.5em;
|
||||
}
|
||||
|
||||
/* components - profiles */
|
||||
/* profiles */
|
||||
.cardProfiles {
|
||||
|
|
|
|||
|
|
@ -71,6 +71,25 @@ nav.userNav .links .navItem.active {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* email popup */
|
||||
.email_popup {
|
||||
margin: 10px 4em;
|
||||
margin-top: 55px;
|
||||
background-color: white;
|
||||
border: 1px solid #d1d1d1;
|
||||
padding: 1em 2em;
|
||||
}
|
||||
.email_popup p {
|
||||
padding: 0;
|
||||
display: inline-block;
|
||||
}
|
||||
.email_popup span {
|
||||
float: right;
|
||||
}
|
||||
.email_popup button {
|
||||
margin: .4em;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 950px) {
|
||||
body .contentWrapper.userPage {
|
||||
flex-direction: column;
|
||||
|
|
@ -80,6 +99,10 @@ nav.userNav .links .navItem.active {
|
|||
flex-direction: row;
|
||||
justify-content: center;
|
||||
}
|
||||
.email_popup {
|
||||
margin: 10px;
|
||||
margin-top: 55px;
|
||||
}
|
||||
.contentCard {
|
||||
display: block;
|
||||
margin: auto;
|
||||
|
|
|
|||
|
|
@ -101,15 +101,15 @@ router.post('/api/v1/login', passport.authenticate('PNIDStrategy'), function (re
|
|||
* errors: Strings[messages]
|
||||
* }
|
||||
*/
|
||||
router.post('/api/v1/register', recaptcha.middleware.verify, async (request, response) => {
|
||||
router.post('/api/v1/register'/*, recaptcha.middleware.verify*/, async (request, response) => {
|
||||
if (!request.body) {
|
||||
return apiHelper.sendApiGenericError(response);
|
||||
}
|
||||
|
||||
if (request.recaptcha.error) {
|
||||
/*if (request.recaptcha.error) {
|
||||
logger.log('warn', `[reCaptcha ERROR] ${request.recaptcha.error} | IP: ${request.ip} | Data: ${JSON.stringify(request.body)}`);
|
||||
return apiHelper.sendApiError(response, 500, ['Captcha error']);
|
||||
}
|
||||
}*/
|
||||
|
||||
const { email, password, confirm_password, username } = request.body;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
</head>
|
||||
<body class="flex">
|
||||
{{> nav-default }}
|
||||
<div id="email_validation_popup" class="email_popup{{#if_eq user.email_validated true}} hide{{/if_eq}}"><p>Your email has not been validated yet. You are restricted from certain features.</p><span><button class="btn-alt small">Change email</button> <button class="btn small">Send again</button></span></div>
|
||||
<div class="contentWrapper userPage">
|
||||
{{> nav-dashboard }}
|
||||
<section class="contentCard">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user