TF-624 Reload page when logged oidc
This commit is contained in:
@@ -78,20 +78,14 @@ class LoginController extends GetxController {
|
||||
? Password(password.trim())
|
||||
: null;
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
if (BuildUtils.isWeb) {
|
||||
_getAuthenticationInfo();
|
||||
}
|
||||
super.onInit();
|
||||
}
|
||||
|
||||
@override
|
||||
void onReady() {
|
||||
if (BuildUtils.isWeb) {
|
||||
final arguments = Get.arguments;
|
||||
if (arguments is LoginArguments) {
|
||||
loginFormType.value = arguments.loginFormType;
|
||||
} else {
|
||||
_getAuthenticationInfo();
|
||||
}
|
||||
}
|
||||
super.onReady();
|
||||
@@ -100,10 +94,12 @@ class LoginController extends GetxController {
|
||||
void _getAuthenticationInfo() async {
|
||||
await _getAuthenticationInfoInteractor.execute()
|
||||
.then((result) => result.fold(
|
||||
(failure) => {},
|
||||
(failure) => _checkOIDCIsAvailable(),
|
||||
(success) {
|
||||
if (success is GetAuthenticationInfoSuccess) {
|
||||
_getStoredOidcConfiguration();
|
||||
} else {
|
||||
_checkOIDCIsAvailable();
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user