Skip to content

Commit 77385f1

Browse files
committed
added support for "blocked login" (too many failed attempts)
1 parent f4a331d commit 77385f1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

www/scripts/sepiaFW.account.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,8 @@ function sepiaFW_build_account(){
773773
if (status == "fail"){
774774
if (data.code && data.code == 3){
775775
if (errorCallback) errorCallback(SepiaFW.local.g('loginFailedServer'));
776+
}else if (data.code && data.code == 10){
777+
if (errorCallback) errorCallback(SepiaFW.local.g('loginFailedBlocked'));
776778
}else{
777779
if (errorCallback) errorCallback(SepiaFW.local.g('loginFailedUser'));
778780
}

www/scripts/sepiaFW.local.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ function sepiaFW_build_strings(){
3636
StringsDE.loginFailedPlain = 'Login fehlgeschlagen!';
3737
StringsDE.loginFailedServer = 'Login fehlgeschlagen! - Das Problem könnte der Server sein.';
3838
StringsDE.loginFailedUser = 'Login fehlgeschlagen! - Username oder Password ist falsch.';
39+
StringsDE.loginFailedBlocked = 'Login fehlgeschlagen! - Zu viele fehlgeschlagene Versuche. Bitte etwas warten.';
3940
StringsDE.logoutAndReload = 'Diese Aktion erfordert einen Log-out und App Neustart.';
4041
StringsDE.noConnectionToNetwork = 'Es tut mir leid, aber sieht so aus als wärest du offline :-(';
4142
StringsDE.connecting = 'Verbindung wird hergestellt ...';
@@ -182,6 +183,7 @@ function sepiaFW_build_strings(){
182183
StringsEN.loginFailedPlain = 'Login failed!';
183184
StringsEN.loginFailedServer = 'Login failed! - Problem could be the server.';
184185
StringsEN.loginFailedUser = 'Login failed! - Wrong username or password.';
186+
StringsEN.loginFailedBlocked = 'Login failed! - Too many failed attempts. Please wait a bit.';
185187
StringsEN.logoutAndReload = 'This action requires a log-out and app reload.';
186188
StringsEN.noConnectionToNetwork = 'I\'m sorry but it seems that you are offline :-(';
187189
StringsEN.connecting = 'Connecting ...';

0 commit comments

Comments
 (0)