mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 02:00:39 +08:00
by hostname
This commit is contained in:
+1
-1
@@ -568,7 +568,7 @@ module.exports = class UsersService {
|
||||
}
|
||||
let redirectDomain;
|
||||
try {
|
||||
redirectDomain = url.parse(loc).host;
|
||||
redirectDomain = url.parse(loc).hostname;
|
||||
} catch (e) {
|
||||
return Promise.reject('redirect location is invalid');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user