forgejo/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
pam
admin.go
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
repo_branch_form.go
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