gitea/modules/auth
Lanre Adelowo 126ba796dc Force user to change password (#4489)
* redirect to login page after successfully activating account

* force users to change password if account was created by an admin

* force users to change password if account was created by an admin

* fixed build

* fixed build

* fix pending issues with translation and wrong routes

* make sure path check is safe

* remove unneccessary newline

* make sure users that don't have to view the form get redirected

* move route to use /settings prefix so as to make sure unauthenticated users can't view the page

* update as per @lafriks review

* add necessary comment

* remove unrelated changes

* support redirecting to location the user actually want to go to before being forced to change his/her password

* run make fmt

* added tests

* improve assertions

* add assertion

* fix copyright year

Signed-off-by: Lanre Adelowo <yo@lanre.wtf>
2018-09-13 15:04:25 +03:00
..
ldap LDAP Public SSH Keys synchronization (#1844) 2018-05-24 07:59:02 +03:00
oauth2 Add scope to Gitlab oauth request (#4330) 2018-06-30 20:13:17 +03:00
openid Run "make fmt" with go-1.6 (#1333) 2017-03-21 08:55:00 +08:00
pam golint fixed for modules/auth 2016-11-27 21:39:06 +08:00
admin.go Better URL validation (#1507) 2017-04-19 11:02:20 +08:00
auth.go Enforce token on api routes [fixed critical security issue #4357] (#4840) 2018-09-10 12:15:52 -04:00
auth_form.go LDAP Public SSH Keys synchronization (#1844) 2018-05-24 07:59:02 +03:00
org.go Add units to team (#947) 2017-05-18 22:54:24 +08:00
repo_branch_form.go Create new branch from branch selection dropdown (#2130) 2017-10-15 22:59:24 +03:00
repo_form.go Slack webhook channel name cannot be empty or just contain an hashtag (#4786) 2018-09-10 10:31:08 -04:00
repo_form_test.go prevent empty review comment (#4632) 2018-08-07 20:15:41 +03:00
user_form.go Force user to change password (#4489) 2018-09-13 15:04:25 +03:00
user_form_auth_openid.go Add Recaptcha functionality to Gitea (#4044) 2018-07-05 00:13:05 -04:00