From 623323f59ec99aabe50b0c4e7b88887d47a47697 Mon Sep 17 00:00:00 2001 From: Sergei Tsoganov Date: Mon, 9 Jan 2023 14:29:01 +0200 Subject: [PATCH] Allow use of semicolon in passwords --- app/controllers/repp/v1/base_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repp/v1/base_controller.rb b/app/controllers/repp/v1/base_controller.rb index 2b05df8ef..464be249a 100644 --- a/app/controllers/repp/v1/base_controller.rb +++ b/app/controllers/repp/v1/base_controller.rb @@ -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?