Skip to content
Snippets Groups Projects
Commit ffbb141c authored by Rifqi222's avatar Rifqi222
Browse files

fix: add readme

parent dfb09153
No related merge requests found
......@@ -86,19 +86,7 @@
<p>Gambar 5. Top-Up Page</p>
<img src="/img/tampilan/ssTopup.png/">
<nl>
<p>Gambar 6. Notifikasi Page</p>
<img src="/img/tampilan/ssNotifikasi.png/">
<nl>
<p>Gambar 7. Sub-Request Page</p>
<img src="/img/tampilan/ssSub.png/">
<nl>
<p>Gambar 8. Accept Page</p>
<img src="/img/tampilan/ssAcc.png/">
<nl>
<p>Gambar 9. Reject Page</p>
<img src="/img/tampilan/ssRej.png/">
<nl>
<p>Gambar 10. Report Page</p>
<p>Gambar 6. Report Page</p>
<img src="/img/tampilan/ssRep.png/">
<nl>
</p>
......
......@@ -29,7 +29,7 @@ const Home = () => {
const navigate = useNavigate();
const checkAuth = async () => {
console.log("1")
const response = await fetch(`${REST_BASE_URL}/check`,
{
method: "POST",
......
......@@ -34,8 +34,9 @@ const Login = () => {
const response = login(username, password);
const data = await response;
console.log(data)
if (!data.ok) {
if (!data.message) {
toast.error(data.message, {
position: "top-center",
autoClose: 1500,
......@@ -47,7 +48,7 @@ const Login = () => {
theme: "light",
});
} else {
localStorage.setItem("token", `Bearer ${data.token}`);
localStorage.setItem("token", `Bearer ${data.authorization}`);
navigate("/");
}
};
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment