summaryrefslogtreecommitdiffstats
path: root/models/user_mail.go
Commit message (Collapse)AuthorAgeFilesLines
* skip email validation on empty string (#13627)65432020-11-201-6/+19
| | | | - move validation into its own function - use a session for UpdateUserSetting
* Add email validity check (#13475)Chris Shyi2020-11-141-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improve error feedback for duplicate deploy keys Instead of a generic HTTP 500 error page, a flash message is rendered with the deploy key page template so inform the user that a key with the intended title already exists. * API returns 422 error when key with name exists * Add email validity checking Add email validity checking for the following routes: [Web interface] 1. User registration 2. User creation by admin 3. Adding an email through user settings [API] 1. POST /admin/users 2. PATCH /admin/users/:username 3. POST /user/emails * Add further tests * Add signup email tests * Add email validity check for linking existing account * Address PR comments * Remove unneeded DB session * Move email check to updateUser Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Use ID or Where to instead directly use Get when load object from database ↵Lunny Xiao2020-06-171-5/+5
| | | | | | | | | | | | (#11925) * Use ID or Where to instead directly use Get when load object from database * Apply suggestions from code review Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
* Admin page for managing user e-mail activation (#10557)guillep2k2020-03-021-16/+265
| | | | | | | | | | | | | | | | | | | | | | | | * Implement mail activation admin panel * Add export comments * Fix another export comment * again... * And again! * Apply suggestions by @lunny * Add UI for user activated emails * Make new activation UI work * Fix lint * Prevent admin from self-deactivate; add modal Co-authored-by: zeripath <art27@cantab.net>
* Ensure only own addresses are updated (#10397)guillep2k2020-02-211-1/+1
|
* Add golangci (#6418)kolaente2019-06-121-1/+1
|
* Replace deprecated Id method with ID (#2655)Ethan Koenig2017-10-051-2/+2
|
* Reduce usage of allcols on update (#2596)Lunny Xiao2017-09-251-3/+3
| | | | | | * reduce usage of allcols on update * fix bug and tests
* Refactor session close as xorm already does everything needed internally (#2020)Lauris BH2017-06-211-2/+2
|
* Fix typos in models/ (#576)Ethan Koenig2017-01-051-2/+2
|
* Fix random string generator (#384)Denis Denisov2016-12-201-1/+3
| | | | | | | | | | | * Remove unused custom-alphabet feature of random string generator Fix random string generator Random string generator should return error if it fails to read random data via crypto/rand * Fixes variable (un)initialization mixed assign Update test GetRandomString
* fixed vulnerabilities (#392)Lunny Xiao2016-12-151-4/+21
|
* Fixes typosBwko2016-11-271-6/+6
|
* Lint models/user_email.goBwko2016-11-261-1/+7
|
* fixed bug #151 caused Find should be Get (#153)Lunny Xiao2016-11-121-1/+1
|
* Rewrite XORM queriesThibault Meyer2016-11-101-3/+10
|
* Refactor User.Id to User.IDUnknwon2016-07-241-3/+3
|
* models/user_mail: refactor EmailAddressUnknwon2016-07-161-0/+198