mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-28 15:38:30 +00:00
Fixing More Mistakes
I shouldn't have done this
This commit is contained in:
parent
42d7b1d724
commit
2148390112
@ -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|
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user