gitea/routers
Chris Shyi d025d84d91
Add email validity check (#13475)
* 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>
2020-11-14 11:53:43 -05:00
..
admin Add email validity check (#13475) 2020-11-14 11:53:43 -05:00
api/v1 Add email validity check (#13475) 2020-11-14 11:53:43 -05:00
dev Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
events Add EventSource support (#11235) 2020-05-07 22:49:00 +01:00
org #13091 - add new mirror button (#13105) 2020-10-23 19:01:58 -04:00
private Prevent git operations for inactive users (#13527) 2020-11-13 01:29:11 +02:00
repo Use monaco for the git hook editor (#13552) 2020-11-13 22:57:34 -05:00
routes Introduce go chi web framework as frontend of macaron, so that we can move routes from macaron to chi step by step (#7420) 2020-11-13 14:51:07 +02:00
user Add email validity check (#13475) 2020-11-14 11:53:43 -05:00
utils Return the full rejection message and errors in flash errors (#13221) 2020-10-20 19:50:10 -04:00
home.go Simplify CheckUnitUser logic (#12854) 2020-09-15 19:49:34 -04:00
init.go Move install pages out of main macaron routes (#13195) 2020-10-19 17:03:08 -04:00
install.go Move install pages out of main macaron routes (#13195) 2020-10-19 17:03:08 -04:00
metrics.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
swagger_json.go Add gitea-vet (#10948) 2020-04-05 07:20:50 +01:00