implement user registration and improve user handling

This commit is contained in:
coderkun 2014-04-05 13:29:49 +02:00
commit f3602d7a9e
7 changed files with 260 additions and 28 deletions

View file

@ -1,12 +1,15 @@
<h1><?=_('Users')?></h1>
<h2><?=_('Login')?></h2>
<h2><?=_('Login')?></h2>
<?php if($failed) : ?>
<p class="invalid"><?=_('Login failed')?>.</p>
<?php endif ?>
<form method="post" action="<?=$linker->link(array(), 2)?>">
<fieldset>
<label for="username"><?=_('Username')?></label>
<input name="username" type="text" placeholder="<?=_('Username')?>" value="<?=$username?>" /><br />
<label for="password"><?=_('Password')?></label>
<input name="password" type="password" placeholder="<?=_('Password')?>" /><br />
<label for="username"><?=_('Username')?>:</label>
<input name="username" type="text" placeholder="<?=_('Username')?>" value="<?=$username?>" required="required" /><br />
<label for="password"><?=_('Password')?>:</label>
<input name="password" type="password" placeholder="<?=_('Password')?>" required="required" /><br />
</fieldset>
<input type="submit" name="login" value="<?=_('Login')?>" />
</form>