feat:loading change setup email
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
86804da8f7
commit
981e9d4fe6
|
|
@ -75,7 +75,7 @@ export default function Login() {
|
||||||
if (response?.data?.messages[0]?.includes("Suspended")) {
|
if (response?.data?.messages[0]?.includes("Suspended")) {
|
||||||
close();
|
close();
|
||||||
error(
|
error(
|
||||||
"Untuk sementara akun Polda/Polres Anda di tangguhkan, silahkan hubungi Admin Mabes untuk konfirmasi, Terima Kasih"
|
"Untuk sementara akun Polda/Polres Anda di tangguhkan, silahkan hubungi Admin Mabes untuk konfirmasi, Terima Kasih",
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -246,7 +246,7 @@ export default function Login() {
|
||||||
url: "https://humas.polri.go.id/auth",
|
url: "https://humas.polri.go.id/auth",
|
||||||
userId: profile?.data?.data?.id,
|
userId: profile?.data?.data?.id,
|
||||||
},
|
},
|
||||||
accessData?.id_token
|
accessData?.id_token,
|
||||||
);
|
);
|
||||||
Cookies.set("profile_picture", profile?.profilePictureUrl, {
|
Cookies.set("profile_picture", profile?.profilePictureUrl, {
|
||||||
expires: 1,
|
expires: 1,
|
||||||
|
|
@ -296,6 +296,7 @@ export default function Login() {
|
||||||
};
|
};
|
||||||
|
|
||||||
const submitCheckEmail = async () => {
|
const submitCheckEmail = async () => {
|
||||||
|
loading();
|
||||||
const req = {
|
const req = {
|
||||||
oldEmail: oldEmail,
|
oldEmail: oldEmail,
|
||||||
newEmail: newEmail,
|
newEmail: newEmail,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue