oils-plugin-auth
Version:
Oils js authentication plugin using passport js.
57 lines (36 loc) • 1.64 kB
HTML
{% extends _conf.mainTemplate %}
{% block title %}User Profile{% endblock %}
{% block head %}
{% endblock %}
{% block content %}
<div class="row">
<div class="col-sm-3 medium-3 columns"></div>
<div class="col-sm-6 medium-6 columns">
<h1>User Profile</h1>
<form action="/user-profile" method="post">
<input type="hidden" name="_csrf" value="{{_csrf}}"/>
<p>Username: {{_user.username}}</p>
<div class="form-group">
<label for="fullname">Full Name:</label>
<input class="form-control" type="text" id="fullname" name="fullname" placeholder="Full Name" value="{{_user.fullname}}"/>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input class="form-control" type="text" id="email" name="email" placeholder="Email" value="{{_user.email}}"/>
</div>
<p>Fill in password fields if you want to change it</p>
<div class="form-group">
<input class="form-control" type="password" name="oldPassword" placeholder="Old Password" value=""/>
</div>
<div class="form-group">
<input class="form-control" type="password" name="password" placeholder="Password" value=""/>
</div>
<div class="form-group">
<input class="form-control" type="password" name="confirmPassword" placeholder="Confirm Password" value=""/>
</div>
<button type="submit" class="btn btn-primary small button">Save</button>
</form>
</div>
<div class="col-sm-3 medium-3 columns"></div>
</div>
{% endblock %}