iptdevs-design-system 2.6.45 → 2.6.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -891,15 +891,18 @@ class BaseService {
|
|
|
891
891
|
};
|
|
892
892
|
let service = this.userService;
|
|
893
893
|
let storage = this.storageService;
|
|
894
|
+
let appUser = this.isAnAppUser();
|
|
894
895
|
return new Promise(function (resolve, reject) {
|
|
895
896
|
service.login(request).subscribe(response => {
|
|
896
897
|
switch (response.message.code) {
|
|
897
898
|
case 1:
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
899
|
+
if (!appUser) {
|
|
900
|
+
Swal.fire({
|
|
901
|
+
'title': '<p style="font-family: Poppins"">Perfect!</p>',
|
|
902
|
+
'html': '<p style="font-family: Poppins"">Succesfull login</p>',
|
|
903
|
+
'icon': 'success',
|
|
904
|
+
});
|
|
905
|
+
}
|
|
903
906
|
const loginRegisterUser = {
|
|
904
907
|
token: response.data.token,
|
|
905
908
|
user: response.data,
|