Remove change-email-validation from the history of the browser

stable
David Barragán Merino 2016-11-11 17:31:36 +01:00 committed by Alejandro Alonso
parent a816f45bbd
commit fb58f0d400
1 changed files with 2 additions and 0 deletions

View File

@ -574,8 +574,10 @@ ChangeEmailDirective = ($repo, $model, $auth, $confirm, $location, $params, $nav
$repo.queryOne("users", $auth.getUser().id).then (data) =>
$auth.setUser(data)
$location.path($navUrls.resolve("home"))
$location.replace()
else
$location.path($navUrls.resolve("login"))
$location.replace()
text = $translate.instant("CHANGE_EMAIL_FORM.SUCCESS")
$confirm.success(text)