|
|
|
@ -570,7 +570,21 @@ app.cacheBuster = null;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
function showEmailConfirmWarning() {
|
|
|
|
|
if (config.requireEmailConfirmation && app.user.uid && !app.user['email:confirmed']) {
|
|
|
|
|
if (!config.requireEmailConfirmation || !app.user.uid) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (!app.user.email) {
|
|
|
|
|
app.alert({
|
|
|
|
|
alert_id: 'email_confirm',
|
|
|
|
|
message: '[[error:no-email-to-confirm]]',
|
|
|
|
|
type: 'warning',
|
|
|
|
|
timeout: 0,
|
|
|
|
|
clickfn: function() {
|
|
|
|
|
app.removeAlert('email_confirm');
|
|
|
|
|
ajaxify.go('user/' + app.user.userslug + '/edit');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else if (!app.user['email:confirmed']) {
|
|
|
|
|
app.alert({
|
|
|
|
|
alert_id: 'email_confirm',
|
|
|
|
|
message: '[[error:email-not-confirmed]]',
|
|
|
|
|