Enable legacy login for tests

This commit is contained in:
Shane Kilkelly 2018-09-21 11:28:44 +01:00 committed by James Allen
parent 1e4e22c472
commit 7d5bd74c43

View file

@ -58,7 +58,7 @@ class User
@getCsrfToken (error) => @getCsrfToken (error) =>
return callback(error) if error? return callback(error) if error?
@request.post { @request.post {
url: "/login" url: if settings.enableLegacyLogin then "/login/legacy" else "/login"
json: { email, @password } json: { email, @password }
}, callback }, callback