Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 1efd6e6b authored by Reyvano Mario Sianturi's avatar Reyvano Mario Sianturi
Browse files

update role

parent b91d0e9d
Branches week-07
No related tags found
No related merge requests found
{% extends 'base.html' %}
{% block content %}
<h1>Welcome, {{ user.nama }}, role {{ user.role }}</h1>
<h1>Welcome, {{ user.nama }}</h1>
<h1>Role: {{ user.role }}</h1>
{% if user.role == 'admin' and is_staff %}
<div class="admin-panel">
......
......@@ -111,7 +111,7 @@ def create_normal_user(request):
custom_user.user = user
custom_user.role = "normal"
custom_user.role = "normal user"
custom_user.save()
......
Admin
username: halo
password: halopass
\ No newline at end of file
password: halopass
User Biasa
username: normaluser
password: normaluserpass
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment