aboutsummaryrefslogtreecommitdiff
path: root/app/views/user
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-02-25 12:39:08 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-02-25 12:39:08 +0100
commit271a1fdc8900a8b2c32675c22dce1cc458209de4 (patch)
tree10f4e575e3d907b637f60128d270ac9a7576ce46 /app/views/user
parent2e871a0adf131f53dcf345ad2dda73bdf7c1a2c9 (diff)
Missing checkUsername and const patten
https://github.com/FreshRSS/FreshRSS/pull/1423 https://github.com/YunoHost-Apps/freshrss_ynh/issues/27#issuecomment-279792363
Diffstat (limited to 'app/views/user')
-rw-r--r--app/views/user/manage.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/user/manage.phtml b/app/views/user/manage.phtml
index 10bee5507..9238a01b9 100644
--- a/app/views/user/manage.phtml
+++ b/app/views/user/manage.phtml
@@ -22,7 +22,7 @@
<div class="form-group">
<label class="group-name" for="new_user_name"><?php echo _t('admin.user.username'); ?></label>
<div class="group-controls">
- <input id="new_user_name" name="new_user_name" type="text" size="16" required="required" maxlength="16" autocomplete="off" pattern="[0-9a-zA-Z_]{1,16}" placeholder="demo" />
+ <input id="new_user_name" name="new_user_name" type="text" size="16" required="required" maxlength="16" autocomplete="off" pattern="<?php echo FreshRSS_user_Controller::USERNAME_PATTERN; ?>" placeholder="demo" />
</div>
</div>