Skip to content

Commit a99b73b

Browse files
authored
Merge pull request #783 from OpenLinkSoftware/openlink_pull_req_20180911
Fix code for Login redirect
2 parents 9539556 + 91a07d1 commit a99b73b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/requests/login-request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class LoginRequest extends AuthRequest {
158158
*/
159159
postLoginUrl (validUser) {
160160
// Login request is part of an app's auth flow
161-
if (/token/.test(this.authQueryParams['response_type'])) {
161+
if (/token|code/.test(this.authQueryParams['response_type'])) {
162162
return this.authorizeUrl()
163163
// Login request is a user going to /login in browser
164164
} else if (validUser) {

0 commit comments

Comments
 (0)