aboutsummaryrefslogtreecommitdiff
path: root/app/views/auth/formLogin.phtml
blob: ecac7aced8a114ea9ac9112e5de1376b3b142726 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<div class="prompt">
	<h1><?= _t('gen.auth.login') ?></h1>

	<?php if (!max_registrations_reached()) { ?>
		<a href="<?= _url('auth', 'register') ?>"><?= _t('gen.auth.registration.ask') ?></a>
	<?php } ?>

	<form id="crypto-form" method="post" action="<?= _url('auth', 'login') ?>">
		<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
		<div>
			<label for="username"><?= _t('gen.auth.username') ?></label>
			<input type="text" id="username" name="username" autocomplete="username" size="16" required="required" pattern="<?= FreshRSS_user_Controller::USERNAME_PATTERN ?>" autofocus="autofocus" />
		</div>
		<div>
			<label for="passwordPlain"><?= _t('gen.auth.password') ?></label>
				<input type="password" id="passwordPlain" required="required" />
				<input type="hidden" id="challenge" name="challenge" /><br />
				<noscript><strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
		</div>
		<div>
			<label class="checkbox" for="keep_logged_in">
				<input type="checkbox" name="keep_logged_in" id="keep_logged_in" value="1" />
				<?= _t('gen.auth.keep_logged_in', $this->cookie_days) ?>
			</label>
			<br />
		</div>
		<div>
			<button id="loginButton" type="submit" class="btn btn-important"><?= _t('gen.auth.login') ?></button>
		</div>
	</form>

	<p><a href="<?= _url('index', 'about') ?>"><?= _t('gen.freshrss.about') ?></a></p>
</div>