mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #140 from blom/adjust-regexp
Adjust some regular expressions
This commit is contained in:
commit
95c86b0ffa
1 changed files with 2 additions and 2 deletions
|
@ -80,8 +80,8 @@ class UserOpenIdsController < ApplicationController
|
||||||
data.merge!(info)
|
data.merge!(info)
|
||||||
end
|
end
|
||||||
|
|
||||||
trusted = open_id_response.endpoint.server_url =~ /^https:\/\/www.google.com\// ||
|
trusted = open_id_response.endpoint.server_url =~ /\Ahttps:\/\/www\.google\.com\// ||
|
||||||
open_id_response.endpoint.server_url =~ /^https:\/\/me.yahoo.com\//
|
open_id_response.endpoint.server_url =~ /\Ahttps:\/\/me\.yahoo\.com\//
|
||||||
|
|
||||||
email = data[:email]
|
email = data[:email]
|
||||||
user_open_id = UserOpenId.where(url: open_id_response.display_identifier).first
|
user_open_id = UserOpenId.where(url: open_id_response.display_identifier).first
|
||||||
|
|
Loading…
Reference in a new issue