Merge branch 'master' into integrate-admin-graphql-framework

This commit is contained in:
Kiwi
2017-05-30 20:48:53 +07:00
committed by GitHub
+5 -1
View File
@@ -571,7 +571,11 @@ module.exports = class UsersService {
}
let redirectDomain;
try {
redirectDomain = url.parse(loc).hostname;
const {hostname, port} = url.parse(loc);
redirectDomain = hostname;
if (port) {
redirectDomain += `:${port}`;
}
} catch (e) {
return Promise.reject('redirect location is invalid');
}