summaryrefslogtreecommitdiffstats
path: root/routers/admin/users.go
Commit message (Collapse)AuthorAgeFilesLines
* Backport: Fix password checks on admin create/edit user (#9076) (#9081)guillep2k2019-11-201-3/+14
| | | | | | * Fix password checks on admin create/edit user * Remove incorrect trimspace
* Fix new user form for non-local users (#8826) (#8828)Lauris BH2019-11-051-9/+11
|
* Password Complexity Checks (#6230)Maxim Tkachenko2019-10-141-1/+9
| | | | | | | | | Add password complexity checks. The default settings require a lowercase, uppercase, number and a special character within passwords. Co-Authored-By: T-M-A <maxim.tkachenko@gmail.com> Co-Authored-By: Lanre Adelowo <adelowomailbox@gmail.com> Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-Authored-By: Lauris BH <lauris@nix.lv>
* Move all mail related codes from models to services/mailer (#7200)Lunny Xiao2019-09-241-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move all mail related codes from models to modules/mailer * fix lint * use DBContext instead Engine * use WithContext not WithEngine * Use DBContext instead of Engine * don't use defer when sess.Close() * move DBContext to context.go and add some methods * move mailer from modules/ to services * fix lint * fix tests * fix fmt * add gitea copyright * fix tests * don't expose db functions * make code clear * add DefaultDBContext * fix build * fix bug
* Use gitea forked macaron (#7933)Tamal Saha2019-08-231-2/+2
| | | Signed-off-by: Tamal Saha <tamal@appscode.com>
* Allow admin toggle forcing a password change for newly created users (#4563)Lanre Adelowo2018-09-131-1/+1
|
* Force user to change password (#4489)Lanre Adelowo2018-09-131-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Cleanup models.User.HashPassword (#3334)Kim "BKC" Carlbäcker2018-01-121-2/+1
|
* Handle refactor (#3339)Morgan Bazalgette2018-01-101-10/+10
| | | | | | * Replace all ctx.Handle with ctx.ServerError or ctx.NotFound * Change Handle(403) to NotFound, avoid using macaron's NotFound
* Change EncodePasswd to HashPassword (#3329)Morgan Bazalgette2018-01-081-1/+1
| | | | | | * Change EncodePasswd to HashPassword * Create test+benchmark for HashPassword
* Enable admin to search by email (#2888)Ethan Koenig2017-11-261-2/+3
|
* Hide unactive on explore users and some refactors (#2741)Lunny Xiao2017-10-241-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | * hide unactive on explore users and some refactors * fix test for removed Organizations * fix test for removed Organizations * fix imports * fix logic bug * refactor the toConds * Rename TestOrganizations to TestSearchUsers and add tests for users * fix other tests * fix other tests * fix watchers tests * fix comments and remove unused code
* feat: Able to disable non-admin to create new organization (#927)Bo-Yi Wu2017-02-141-0/+1
|
* Restrict creating organisations by user (#193)Schwobaland2016-12-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | * restrict creating organizations based on right on user * revert bindata.go * reverse vendor lib * revert goimports change * set AllowCreateOrganization default value to true * revert locale * added default value for AllowCreateOrganization * fix typo in migration-comment * fix comment * add coments in migration
* Added sorting to organizations, repos & users page (#222)Bwko2016-12-241-1/+0
|
* Fix random string generator (#384)Denis Denisov2016-12-201-1/+5
| | | | | | | | | | | * 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
* golint fixed for modules/authLunny Xiao2016-11-271-1/+1
|
* Golint fixed for modules/setting (#262)Lunny Xiao2016-11-271-5/+5
| | | | | | * golint fixed for modules/setting * typo fixed and renamed UNIXSOCKET to UnixSocket
* go lint fixed for routers/adminLunny Xiao2016-11-211-13/+19
|
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-7/+7
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* And othersSandro Santilli2016-11-071-1/+1
|
* More...Sandro Santilli2016-11-071-1/+1
|
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-7/+7
|
* Refactor User.Id to User.IDUnknwon2016-07-241-1/+1
|
* Use struct for UI settingsUnknwon2016-07-241-1/+1
|
* #2937 able to prohibit user loginUnknwon2016-07-161-0/+1
|
* #2854 fix no mail notification when issue is closed/reopenedUnknwon2016-07-161-3/+2
|
* #13 fix admin can't search private reposUnknwon2016-03-151-2/+8
| | | | - update glide info
* #13 finish user and repository searchUnknwon2016-03-111-17/+3
| | | | Both are possible on explore and admin panel
* Rename module: middleware -> contextUnknwon2016-03-111-8/+8
|
* #1938 #1374 disable password change for non-local usersUnknwon2015-12-101-1/+1
|
* #1575 Limit repo creationUnknwon2015-12-101-0/+1
|
* APIs: admin usersUnknwon2015-12-051-3/+3
|
* #1511 Allow local import only for admin usersUnknwon2015-11-031-0/+1
|
* #1525 Triggere mailer for admin created accountsUnknwon2015-09-251-0/+10
|
* #1633 admin delete userUnknwon2015-09-131-10/+12
|
* fix #1632 and #1606Unknwon2015-09-131-1/+1
|
* #697 and #1606 and new admin edit user UIUnknwon2015-09-131-30/+43
|
* #1606 GUI bug while adding ldap userUnknwon2015-09-131-1/+1
|
* #697 disable captcha and new admin create user UIUnknwon2015-09-131-36/+23
|
* new admin user list UIUnknwon2015-09-111-4/+11
|
* WIP: create PR - choose branchUnknwon2015-08-081-5/+5
|
* Add full name field to admin's user edit page (fixes #1130)James2015-04-281-0/+1
|
* #1070 Clearer error message for illegal charactersUnknwon2015-03-261-6/+9
|
* #1067: Deleting users should remove them from collaborator listsUnknwon2015-03-171-3/+3
| | | | - fix delete user but repository watches are not decreased
* #851: Edit Account does not take into consideration password rulesUnknwon2015-03-171-4/+3
|
* fix #676Unknwon2014-11-301-3/+9
|
* fox #620Unknwon2014-11-171-1/+2
|
* fix #622Unknwon2014-11-131-0/+3
|
* Fix pagination() to get the right total number of pagesEryx2014-10-141-1/+2
|