From df75335f7b1fe6d90aaa8930d9a51b14636ca026 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 7 Jan 2016 10:22:50 +0100 Subject: [PATCH] Detect duplicated users when accepting taiga invitation --- app/coffee/modules/auth.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/coffee/modules/auth.coffee b/app/coffee/modules/auth.coffee index 6a6ccc04..20c7c5de 100644 --- a/app/coffee/modules/auth.coffee +++ b/app/coffee/modules/auth.coffee @@ -437,9 +437,7 @@ InvitationDirective = ($auth, $confirm, $location, $params, $navUrls, $analytics $confirm.notify("success", text) onErrorSubmitLogin = (response) -> - text = $translate.instant("INVITATION_LOGIN_FORM.ERROR") - - $confirm.notify("light-error", text) + $confirm.notify("light-error", response.data._error_message) submitLogin = debounce 2000, (event) => event.preventDefault()