Skip to content
Snippets Groups Projects
Commit 313d1fe9 authored by Sulthan Dzaky Alfaro's avatar Sulthan Dzaky Alfaro
Browse files

login change

parent d1970882
Branches
Tags
No related merge requests found
...@@ -36,10 +36,10 @@ document.getElementById('tmblbuatlogin').addEventListener('click', function() { ...@@ -36,10 +36,10 @@ document.getElementById('tmblbuatlogin').addEventListener('click', function() {
} }
else if(response.status==="sukses"){ else if(response.status==="sukses"){
if(response.role==="admin"){ if(response.role==="admin"){
window.location.href = "admin.html";//nanti diganti window.location.href = "/admin";//nanti diganti
} }
else if(response.role==="user"){ else if(response.role==="user"){
window.location.href = "user.html";//nanti diganti window.location.href = "/user";//nanti diganti
} }
} }
} else { } else {
......
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