fix js error removed dupe code

This commit is contained in:
Barış Soner Uşaklı
2015-03-11 13:32:28 -04:00
parent abd3979fb3
commit 940c33c426
3 changed files with 5 additions and 24 deletions

View File

@@ -537,7 +537,7 @@ app.cacheBuster = null;
});
};
function showEmailConfirmWarning() {
function showEmailConfirmWarning(err) {
if (!config.requireEmailConfirmation || !app.user.uid) {
return;
}
@@ -555,7 +555,7 @@ app.cacheBuster = null;
} else if (!app.user['email:confirmed']) {
app.alert({
alert_id: 'email_confirm',
message: '[[error:email-not-confirmed]]',
message: err ? err.message : '[[error:email-not-confirmed]]',
type: 'warning',
timeout: 0,
clickfn: function() {