From 831c4d386c71d6ec4dbe1c1583478c142debc225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Fri, 11 Nov 2016 17:31:36 +0100 Subject: [PATCH] [Backport] Remove change-email-validation from the history of the browser --- app/coffee/modules/auth.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/coffee/modules/auth.coffee b/app/coffee/modules/auth.coffee index 814e8323..e4f4dcf0 100644 --- a/app/coffee/modules/auth.coffee +++ b/app/coffee/modules/auth.coffee @@ -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)