Enable legacy login for tests

This commit is contained in:
Shane Kilkelly
2018-09-24 08:34:50 +01:00
committed by James Allen
parent 1e4e22c472
commit 7d5bd74c43
@@ -58,7 +58,7 @@ class User
@getCsrfToken (error) =>
return callback(error) if error?
@request.post {
url: "/login"
url: if settings.enableLegacyLogin then "/login/legacy" else "/login"
json: { email, @password }
}, callback