Lanre Adelowo
ce9a5173fe
fix password variable shadowing ( #5405 )
6 years ago
Lanre Adelowo
fd37fb01fd
Don't force a password change for the admin user when creating an account via cli ( #5391 )
...
* don't force a password change for the admin user
* don't totally dicard -must-change-password flag if creating the first (admin) user via the cli. Use flag if present but make sure to default to not forcing a password update
6 years ago
Lanre Adelowo
e5daa2698f
Generate random password ( #5023 )
...
* add random-password flag
* run make fmt
* add length cli flag rather than use a default value
6 years ago
Lanre Adelowo
c2748ea7fe
Add must-change-password flag to cli for creating a user ( #4955 )
...
* add support for an admin to force a user to change his/her password from thee cli
* use BoolFlag instead
* default to true
* simplify by removing unnneccessary if/else
6 years ago
Bo-Yi Wu
1e34413238
refactor: err != nil check, just return error instead ( #5093 )
6 years ago
techknowlogick
e91a2cf2ea
Add/remove/list oauth providers via cli ( #4591 )
6 years ago
Fluf
f54626df0b
Add config path as an optional flag when changing pass via CLI ( #4184 )
7 years ago
techknowlogick
8176345c0e
Add cli commands to regen hooks & keys ( #3979 )
...
* Add cli commands to regen hooks & keys
* make fmt
* Allow passing path to config as an option
* add docs
7 years ago
Morgan Bazalgette
2b52f77e1b
General refactor of the cmd package ( #3328 )
...
* General refactor of the cmd package
* Address breakage in runCreateUser
* Place "common" functions into cmd.go
7 years ago
Kim "BKC" Carlbäcker
e5b8b4b5ec
Cleanup models.User.HashPassword ( #3334 )
7 years ago
Morgan Bazalgette
674cfb7cac
Change EncodePasswd to HashPassword ( #3329 )
...
* Change EncodePasswd to HashPassword
* Create test+benchmark for HashPassword
7 years ago
Sandro Santilli
8cd987af0c
Add repo-sync-releases admin command ( #3254 )
...
* Add repo-sync-releases admin command
Will help recovering corrupted database, see #3247
* Load repos in chunks of 10, exit with error if unable to get a list, scan private repos, fix typo
* Fix debug output about num releases
* Introduce RepositoryListDefaultPageSize constant, set to 64
Use it from the new admin command
* Use RepositoryListDefaultPageSize in more places
* Document RepositoryListDefaultPageSize
7 years ago
Lunny Xiao
f960e19c59
Only update needed columns when update user ( #2296 )
...
* only update needed columns when update user
* fix missing update_unix column
7 years ago
Bo-Yi Wu
22295944df
refactor: show command help message. ( #1486 )
8 years ago
Sandro Santilli
e1586898b2
Add change-password admin command ( #1304 )
...
* Add change-password admin command
8 years ago
Christoph König
ffde33bdfa
Fix typo ( #990 )
8 years ago
Lunny Xiao
04fdeb9d8d
Make Xorm log configurable ( #174 )
...
* make xorm log configable
* bug fixed for other sub commands except web
* rebase and fix xorm log
* bug fix for TrimSpace
8 years ago
Sandro Santilli
9b4f6c1c32
Handle SetModel error, fixes one errcheck report ( #257 )
8 years ago
Joubert RedRat
ce21ed6c34
Remove remaining Gogs reference on locales and cmd ( #430 )
8 years ago
Sandro Santilli
4247304f5a
Update import paths from github.com/go-gitea to code.gitea.io ( #135 )
...
- 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
8 years ago
Matthias Loibl
90fb64b217
Improve formatting of admin command
...
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
8 years ago
Matthias Loibl
5cd093aa46
Use cli Flags directly and not some helper funcs
...
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
8 years ago
Thomas Boerger
5b5af7daee
Made linter happy in cmd folder
8 years ago
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs ( #37 )
8 years ago
Kim "BKC" Carlbäcker
4f40019130
codegangsta/cli => urfave/cli ( #3546 )
8 years ago
Unknwon
0f33b04c87
Add subcommand to create new user in CLI
8 years ago