Skip to main content
Sign in
Snippets Groups Projects
Commit cc89a359 authored by Esther Regina's avatar Esther Regina
Browse files

fix: fixed required password

parent 69d5d842
No related branches found
No related tags found
2 merge requests!10chore: merge develop into main,!8fix: fixed password required in update admin
......@@ -18,7 +18,7 @@ const Edit = () => {
}
const body = JSON.stringify({
username,
password
password: password || undefined
})
const updateQuery = await fetch("https://rpl-backend-production.up.railway.app/v1/adminkursus/update/" + router.query.id, {
method: "PATCH",
......@@ -79,6 +79,7 @@ const Edit = () => {
handleUpdate()
return;
}}>
<div className="flex flex-row align-middle justify-between">
<span className="h-min my-auto font-bold text-lg">user_id</span>
<input disabled value={user_id} type="tel" required className="drop-shadow-xl w-2/3 p-2 rounded-xl" />
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment