Fixing More Mistakes

I shouldn't have done this
This commit is contained in:
Ryan G 2023-06-13 16:21:05 -07:00
parent 42d7b1d724
commit 2148390112
2 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ module Invidious::Routes::API::V1::Authentication
end
else
# send captcha
captcha = Invidious::User::Captcha.generate_text(HMAC_KEY, "POST::register")
captcha = Invidious::User::Captcha.generate_text(HMAC_KEY, ":api_register")
# Fix token formatting
formatted_tokens : Array(JSON::Any) = Array(JSON::Any).new
captcha["tokens"].each do |tok|

View File

@ -245,9 +245,9 @@ module Invidious::Routing
get "/api/v1/hashtag/:hashtag", {{namespace}}::Search, :hashtag
# Authentication
post "/api/v1/register", {{namespace}}::Authentication, :api_register
post "/api/v1/login", {{namespace}}::Authentication, :api_login
post "/api/v1/signout", {{namespace}}::Authentication, :api_signout
post "/api/v1/api_register", {{namespace}}::Authentication, :api_register
post "/api/v1/api_login", {{namespace}}::Authentication, :api_login
post "/api/v1/api_signout", {{namespace}}::Authentication, :api_signout
# Authenticated