mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Support long email addresses
According to RFC 3696 (and the associated errata), an email address can be up to 256 characters long. Change the database field and the length limit on all input fields accordingly. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
f9ac67f691
commit
d52b2f50b9
4 changed files with 9 additions and 3 deletions
|
@ -29,7 +29,7 @@ html_header('AUR ' . __("Login"));
|
|||
<?php endif; ?>
|
||||
<p>
|
||||
<label for="id_username"><?= __('User name or email address') . ':'; ?></label>
|
||||
<input id="id_username" type="text" name="user" size="30" maxlength="<?= config_get_int('options', 'username_max_len'); ?>" value="<?php if (isset($_POST['user'])) { print htmlspecialchars($_POST['user'], ENT_QUOTES); } ?>" autofocus="autofocus" />
|
||||
<input id="id_username" type="text" name="user" size="30" maxlength="<?= max(config_get_int('options', 'username_max_len'), 256); ?>" value="<?php if (isset($_POST['user'])) { print htmlspecialchars($_POST['user'], ENT_QUOTES); } ?>" autofocus="autofocus" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="id_password"><?= __('Password') . ':'; ?></label>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue