fix cr code
This commit is contained in:
@@ -12,7 +12,7 @@ module Invidious::Routes::Login
|
|||||||
|
|
||||||
if forwarded_user = env.request.headers["X-authentik-email"]?
|
if forwarded_user = env.request.headers["X-authentik-email"]?
|
||||||
begin
|
begin
|
||||||
email = forwarded_user?.try &.downcase.byte_slice(0, 254)
|
email = forwarded_user.try &.downcase.byte_slice(0, 254)
|
||||||
|
|
||||||
return error_template(401, "User ID is a required field") if email.nil? || email.empty?
|
return error_template(401, "User ID is a required field") if email.nil? || email.empty?
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user