0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-19 18:34:16 +01:00
gitea/models
Berk Demirkır bdad3b259a Check primary email address fields on CreateUser (#556)
* Check primary email address fields on CreateUser

As this check wasn't available, uid=1 (and possibly guests too, if registration is open) is able to register new users with existing email addresses. This leads to numerous 500 errors.

* Update user.go

* Lower the email first. Then check
2017-01-05 08:52:20 +08:00
..
fixtures Unit tests for token and update models 2016-12-31 10:17:45 +01:00
migrations Restrict creating organisations by user (#193) 2016-12-31 10:33:30 +08:00
access.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
action.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
admin.go Lint models/admin.go 2016-11-24 23:42:07 +01:00
error.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
git_diff.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
git_diff_test.go fix gofmt error 2016-12-30 20:41:10 +01:00
graph.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
graph_test.go Fix benchmarktests (#557) 2017-01-03 10:52:09 +08:00
issue.go fix gofmt error 2016-12-30 20:41:10 +01:00
issue_comment.go UpdateIssueUsersByMentions was calling database write operations while (#443) 2016-12-22 17:00:39 +08:00
issue_label.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
issue_mail.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
lfs.go Git LFS support v2 (#122) 2016-12-26 09:16:37 +08:00
login_source.go Correction LDAP validation (#342) 2016-12-12 08:46:51 +08:00
mail.go Implement sendmail (#355) 2016-12-25 14:55:22 +01:00
models.go Update xorm and dependencies vendor for feature to dump to other database (#565) 2017-01-03 16:20:28 +08:00
models_sqlite.go
models_test.go
models_tidb.go Remove go version from build tags (#133) 2016-11-10 08:43:49 -02:00
notification.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
org.go fix bug #564 (#567) 2017-01-03 16:27:11 +08:00
org_team.go rename all uID -> userID on models/org_team.go 2016-11-28 16:33:08 +08:00
pull.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
release.go change the default action when deleting a release to not delete tag 2017-01-03 02:27:38 +01:00
repo.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
repo_branch.go Lint models/repo_branch.go 2016-11-26 11:20:37 +01:00
repo_collaboration.go API Endpoints for collaborators (#375) 2016-12-26 15:37:01 +08:00
repo_editor.go update code.gitea.io/git (#450) 2016-12-22 10:30:52 +01:00
repo_mirror.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
repo_test.go fixed test build error 2016-11-25 16:02:10 +08:00
setup_for_test.go Unit tests for token and update models 2016-12-31 10:17:45 +01:00
ssh_key.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
ssh_key_test.go Update import paths from github.com/go-gitea to code.gitea.io (#135) 2016-11-10 17:24:48 +01:00
star.go Tab on user profile to show starred repos (#519) 2016-12-29 22:58:24 +08:00
token.go fixed vulnerabilities (#392) 2016-12-15 16:49:06 +08:00
token_test.go Unit tests for token and update models 2016-12-31 10:17:45 +01:00
update.go update code.gitea.io/git (#450) 2016-12-22 10:30:52 +01:00
update_test.go Unit tests for token and update models 2016-12-31 10:17:45 +01:00
user.go Check primary email address fields on CreateUser (#556) 2017-01-05 08:52:20 +08:00
user_mail.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
webhook.go Fix string format verbs (#3637) 2016-12-22 08:18:41 +01:00
webhook_slack.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
wiki.go In the wiki title replace tab with a space (#371) 2016-12-11 11:01:26 +08:00