summaryrefslogtreecommitdiffstats
path: root/app/view/common
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-03-13 22:18:45 -0400
committerMalf Furious <m@lfurio.us>2016-03-27 20:16:32 -0400
commite18f080a81c34204d7aa66441cdf9734d88cb30d (patch)
tree48b72ad8906e8224a7a2fba356f1605e28818571 /app/view/common
parentded0da07ab8d784c7d257a9487fef096032c5521 (diff)
downloadscrott-e18f080a81c34204d7aa66441cdf9734d88cb30d.tar.gz
scrott-e18f080a81c34204d7aa66441cdf9734d88cb30d.zip
Fix maxlengths for fields on user objects
Usernames, aliai, and email addresses are capped at 50 chars in the backend
Diffstat (limited to 'app/view/common')
-rw-r--r--app/view/common/setting.modal.view.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php
index c9587a0..93a273a 100644
--- a/app/view/common/setting.modal.view.php
+++ b/app/view/common/setting.modal.view.php
@@ -63,12 +63,12 @@
<div class="form-group">
<label>Alias</label>
- <input type="text" name="input[alias]" class="form-control" value="<?=$mod->getCurrentUser()->alias?>" />
+ <input type="text" name="input[alias]" class="form-control" value="<?=$mod->getCurrentUser()->alias?>" maxlength="50" />
</div>
<div class="form-group">
<label>Email</label>
- <input type="text" name="input[email]" class="form-control" value="<?=$mod->getCurrentUser()->email?>" />
+ <input type="text" name="input[email]" class="form-control" value="<?=$mod->getCurrentUser()->email?>" maxlength="50" />
</div>
<?php if ($mod->getCurrentUser()->email != "" && $mod->getCurrentUser()->emailConf == 0) { ?>
@@ -147,7 +147,7 @@
<input type="hidden" name="input[action]" value="common-setting-allusers-adduser" />
<div class="form-group">
<label>Username</label>
- <input type="text" name="input[username]" class="form-control" required="true" />
+ <input type="text" name="input[username]" class="form-control" required="true" maxlength="50" />
</div>
<div class="form-group">
@@ -168,12 +168,12 @@
<div class="form-group">
<label>Alias</label>
- <input type="text" name="input[alias]" class="form-control" />
+ <input type="text" name="input[alias]" class="form-control" maxlength="50" />
</div>
<div class="form-group">
<label>Email</label>
- <input type="text" name="input[email]" class="form-control" />
+ <input type="text" name="input[email]" class="form-control" maxlength="50" />
</div>
<button type="submit" class="btn btn-success pull-right">Add</button>