Skip to content

Commit 7710bdc

Browse files
committed
Check at least one digit
1 parent 1ef62e3 commit 7710bdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/orcid_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def callback
1919
@oauth2_client.authorization_code = params[:code]
2020
token = Rack::OAuth2::AccessToken::Bearer.new(access_token: @oauth2_client.access_token!)
2121
if params[:state].present?
22-
m = params[:state].match(/space_id:(\d*)/)
22+
m = params[:state].match(/space_id:(\d+)/)
2323
space = Space.find_by_id(m[1]) if m
2424
end
2525
orcid = token.access_token&.raw_attributes['orcid']

0 commit comments

Comments
 (0)