From: Christian Weiske Date: Sun, 8 Oct 2023 08:18:24 +0000 (+0200) Subject: Show hint on Razer Forge TV account registration X-Git-Url: https://git.cweiske.de/stouyapi.git/commitdiff_plain/f4a5ec9fd4528f03c5dd080ca9542bbb3771c755 Show hint on Razer Forge TV account registration --- diff --git a/www/.htaccess b/www/.htaccess index 5ba02ed..7469bae 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -38,6 +38,7 @@ RewriteRule ^api/v1/discover/(.+)$ /api/v1/discover-data/$1.json [END] #TODO: Use that only for the api/v1/gamers path, not for all ErrorDocument 400 /api/v1/gamers/register-error.json RewriteRule ^api/v1/gamers$ /api/v1/gamers/register-error.json [R=400,END] +RewriteRule ^api/razer/gamer$ /api/v1/gamers/register-error.json [R=400,END] #prevent redirect from gamers/me to gamers/me/ diff --git a/www/api/v1/gamers/register-error.json b/www/api/v1/gamers/register-error.json index de9ef05..e1de7e2 100644 --- a/www/api/v1/gamers/register-error.json +++ b/www/api/v1/gamers/register-error.json @@ -5,6 +5,9 @@ "data": { "username": [ "Registration not available. Login instead." + ], + "email": [ + "Registration not available - login instead. First part of login e-mail will be used as nickname." ] } }