mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 21:16:12 +02:00
Allow use of semicolon in passwords
This commit is contained in:
parent
ae1e711792
commit
623323f59e
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ module Repp
|
|||
end
|
||||
|
||||
def authenticate_user
|
||||
username, password = Base64.urlsafe_decode64(basic_token).split(':')
|
||||
username, password = Base64.urlsafe_decode64(basic_token).split(':', 2)
|
||||
@current_user ||= ApiUser.find_by(username: username, plain_text_password: password)
|
||||
user_active = @current_user.active?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue