mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Added e-mail confirmation and password reset
This commit is contained in:
@ -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);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user