From 04f2002feb6ec0429a3bf0996ae39bfd1e7bb365 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 27 Apr 2016 17:04:22 -0400 Subject: [PATCH] (fix) return correct response --- UI/MainUI/SOGoRootPage.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/MainUI/SOGoRootPage.m b/UI/MainUI/SOGoRootPage.m index 5c27c7384..227f103d7 100644 --- a/UI/MainUI/SOGoRootPage.m +++ b/UI/MainUI/SOGoRootPage.m @@ -597,6 +597,8 @@ newPassword: newPassword perr: &error]) { + response = [self responseWith204]; + // We delete the previous session if (creds) { @@ -610,7 +612,6 @@ username = [NSString stringWithFormat: @"%@@%@", username, domain]; } - response = [self responseWith204]; authCookie = [auth cookieWithUsername: username andPassword: newPassword inContext: context];