mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-04 16:28:50 +01:00
Merge pull request #1935 from mattr-/simplify-login-system
Simplify the return values when using basic auth
This commit is contained in:
commit
da7a97b9b5
1 changed files with 2 additions and 5 deletions
|
|
@ -195,15 +195,12 @@ module LoginSystem
|
|||
end
|
||||
if authdata and authdata[0] == 'Basic'
|
||||
data = Base64.decode64(authdata[1]).split(':')[0..1]
|
||||
return {
|
||||
{
|
||||
user: data[0],
|
||||
pass: data[1]
|
||||
}
|
||||
else
|
||||
return {
|
||||
user: ''.freeze,
|
||||
pass: ''.freeze
|
||||
}
|
||||
{}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue