mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 07:46:05 -07:00
Updated translations for #402
Finished reworking the redirect in the login for #426
This commit is contained in:
parent
5455b0076a
commit
2c67576af6
13 changed files with 1247 additions and 78 deletions
|
@ -87,7 +87,7 @@ namespace PlexRequests.UI.Modules
|
|||
Log.Debug("Username \"{0}\" attempting to login", username);
|
||||
if (string.IsNullOrWhiteSpace(username))
|
||||
{
|
||||
Session["TempMessage"] = "username";
|
||||
Session["TempMessage"] = Resources.UI.UserLogin_IncorrectUserPass;
|
||||
var uri = Linker.BuildAbsoluteUri(Context, "UserLoginIndex");
|
||||
return Response.AsRedirect(uri.ToString()); // TODO Check this
|
||||
}
|
||||
|
@ -100,7 +100,8 @@ namespace PlexRequests.UI.Modules
|
|||
if (IsUserInDeniedList(username, settings))
|
||||
{
|
||||
Log.Debug("User is in denied list, not allowing them to authenticate");
|
||||
var uri = Linker.BuildAbsoluteUri(Context, "UserLoginIndex", "error=check");
|
||||
Session["TempMessage"] = Resources.UI.UserLogin_IncorrectUserPass;
|
||||
var uri = Linker.BuildAbsoluteUri(Context, "UserLoginIndex");
|
||||
return Response.AsRedirect(uri.ToString()); // TODO Check this
|
||||
}
|
||||
|
||||
|
@ -159,7 +160,8 @@ namespace PlexRequests.UI.Modules
|
|||
|
||||
if (!authenticated)
|
||||
{
|
||||
var uri = Linker.BuildAbsoluteUri(Context, "UserLoginIndex", "error=incorrect");
|
||||
var uri = Linker.BuildAbsoluteUri(Context, "UserLoginIndex");
|
||||
Session["TempMessage"] = Resources.UI.UserLogin_IncorrectUserPass;
|
||||
return Response.AsRedirect(uri.ToString()); // TODO Check this
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue