mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-19 10:39:59 +00:00
Bug 4032: Fixed a bug that caused an unwanted page refresh
This commit is contained in:
1 parent
77f835b3dd
commit
aa2fe75e34
1 file changed
+4
-2
+4
-2
@@ -153,8 +153,10 @@ public class AuthenticationManagerImpl implements AuthenticationManager {
|
||||
public void onSuccess(SuccessInfo result) {
|
||||
if (result.isSuccessful()) {
|
||||
callback.onSuccess(result);
|
||||
// when a user logs in we explicitly switch to the user's locale event if a locale is given by the URL
|
||||
redirectIfLocaleIsSetAndLocaleIsNotGivenInTheURL(result.getUserDTO().getLocale());
|
||||
if (ExperimentalFeatures.REFRESH_ON_LOCALE_CHANGE_IN_USER_PROFILE) {
|
||||
// when a user logs in we explicitly switch to the user's locale event if a locale is given by the URL
|
||||
redirectIfLocaleIsSetAndLocaleIsNotGivenInTheURL(result.getUserDTO().getLocale());
|
||||
}
|
||||
} else {
|
||||
if (SuccessInfo.FAILED_TO_LOGIN.equals(result.getMessage())) {
|
||||
view.setErrorMessage(StringMessages.INSTANCE.failedToSignIn());
|
||||
|
||||
Reference in new issue
Block a user