comlounge / camper

Barcamp-Tools
https://barcamptools.eu
MIT License
21 stars 7 forks source link

edit user profile username.length_validation don't work for exisiting short names, f.e. sl0 #148

Closed sl0 closed 7 years ago

sl0 commented 7 years ago

Trying to edit my exsiting user profile I 'm unable to change anthing because of line 30 in camper/handlers/users/edit.py: username = TextField(T(u"url name (username)"), [validators.Length(min=4, max=50), validators.Required(), validators.Regexp('^[a-zA-Z0-9_]+$')], description=T("this is the url p ath of your profile page, should only contain letters and numbers")) 31

As I was able to create this user (a long time ago) having 3 letters only (I will not change) this is assumed to be a bug introduced since then. Have fun! sl0

sl0 commented 7 years ago

THX, have fun! sl0