mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-16 18:21:28 +00:00
Limit text length and number of level labels
This commit is contained in:
parent
40d7562660
commit
2a44e85a30
3 changed files with 5 additions and 3 deletions
|
@ -37,7 +37,7 @@ public class UserSettingsPage : BaseLayout
|
|||
|
||||
biography = SanitizationHelper.SanitizeString(biography);
|
||||
|
||||
if (this.ProfileUser.Biography != biography) this.ProfileUser.Biography = biography;
|
||||
if (this.ProfileUser.Biography != biography && biography.Length <= 512) this.ProfileUser.Biography = biography;
|
||||
|
||||
if (ServerConfiguration.Instance.Mail.MailEnabled && IsValidEmail(email) && (this.User == this.ProfileUser || this.User.IsAdmin))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue