mirror of https://gitgud.io/fatchan/jschan.git
parent
8202ad5f07
commit
6ce923edfc
11 changed files with 87 additions and 48 deletions
@ -1,25 +1,25 @@ |
||||
extends ../layout.pug |
||||
|
||||
block head |
||||
title Register |
||||
title #{__('Register')} |
||||
|
||||
block content |
||||
h1.board-title Register |
||||
h1.board-title #{__('Register')} |
||||
.form-wrapper.flex-center.mv-10 |
||||
form.form-post(action='/forms/register' method='POST' data-captcha-preload='true') |
||||
.row |
||||
.label Username |
||||
input(type='text', name='username', maxlength='50' pattern='[a-zA-Z0-9]+' required title='alphanumeric only') |
||||
.label #{__('Username')} |
||||
input(type='text', name='username', maxlength='50' pattern='[a-zA-Z0-9]+' required title=__('alphanumeric only')) |
||||
.row |
||||
.label Password |
||||
.label #{__('Password')} |
||||
input(type='password', name='password', maxlength='100' required) |
||||
.row |
||||
.label Confirm Password |
||||
.label #{__('Confirm Password')} |
||||
input(type='password', name='passwordconfirm', maxlength='100' required) |
||||
if captchaOptions.type === 'text' |
||||
include ../includes/captchasidelabel.pug |
||||
else |
||||
include ../includes/captchafieldrow.pug |
||||
input(type='submit', value='Register') |
||||
p: a(href='/login.html') Login |
||||
p: a(href='/changepassword.html') Change Password |
||||
input(type='submit', value=__('Register')) |
||||
p: a(href='/login.html') #{__('Login')} |
||||
p: a(href='/changepassword.html') #{__('Change Password')} |
||||
|
@ -1,27 +1,27 @@ |
||||
extends ../layout.pug |
||||
|
||||
block head |
||||
title Login Sessions |
||||
title #{__('Sessions')} |
||||
|
||||
block content |
||||
.board-header |
||||
h1.board-title Active Sessions |
||||
h1.board-title #{__('Active Sessions')} |
||||
br |
||||
hr(size=1) |
||||
h4.mv-5 Active sessions: |
||||
h4.mv-5 #{__('Active Sessions')}: |
||||
form.form-post.nogrow(action=`/forms/deletesessions` method='POST' enctype='application/x-www-form-urlencoded') |
||||
input(type='hidden' name='_csrf' value=csrf) |
||||
.table-container.flex-left.text-center |
||||
table |
||||
tr |
||||
th |
||||
th ID |
||||
th Expires |
||||
th #{__('ID')} |
||||
th #{__('Expires')} |
||||
each session, sessionId in sessions |
||||
tr(class=(sessionId === currentSessionKey ? 'bold' : '')) |
||||
td: input(type='checkbox', name='checkedsessionids' value=sessionId) |
||||
td #{sessionId} #{sessionId === currentSessionKey ? '(current)' : ''} |
||||
- const expiryDate = new Date(session.cookie.expires) |
||||
td: time.reltime(datetime=expiryDate.toISOString()) #{expiryDate.toLocaleString(undefined, {hourCycle:'h23'})} |
||||
h4.mv-5 Delete Selected: |
||||
input(type='submit', value='Delete') |
||||
h4.mv-5 #{__('Delete Selected')}: |
||||
input(type='submit', value=__('Delete')) |
||||
|
Loading…
Reference in new issue