Added e-mail confirmation and password reset

This commit is contained in:
Marcin Kurczewski
2014-09-08 13:06:32 +02:00
parent 121c2f80dc
commit 85a026c37b
23 changed files with 619 additions and 107 deletions

View File

@ -50,10 +50,13 @@ App.Presenters.RegistrationPresenter = function(
}
function registrationSuccess(apiResponse) {
//todo: tell user if it turned out that he needs to confirm his e-mail
$el.find('form').slideUp(function() {
var message = 'Registration complete! ';
message += '<a href="#/login">Click here</a> to login.';
if (!apiResponse.json.confirmed) {
message += '<br/>Check your inbox for activation e-mail.<br/>If e-mail doesn\'t show up, check your spam folder.';
} else {
message += '<a href="#/login">Click here</a> to login.';
}
messagePresenter.showInfo($messages, message);
});
}