-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Improve users management through the CLI (#6001) #10492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
556 commits
Select commit
Hold shift + click to select a range
9aebef4
Fix images in wiki edit preview (#11546)
mrsdizzie 399fe30
Prevent empty query parameter being set on dashboard (#11561)
zeripath 2dde170
Fix wrong milestone in webhook message (#11596)
gary-kim 9f2f938
[skip ci] Updated translations via Crowdin
GiteaBot bc09785
When initialising repositories ensure that the user doing the creatio…
zeripath ec4676c
Fix inconsistent font size for markdown preview on new PR view (#11565)
CirnoT 3f5719b
Add chocolatey package install instructions (#11586)
doggy8088 30d58ec
Do not show avatar for "{{user}} added X commits" (#11591)
CirnoT b0e5c72
Add warning to mailer documentation about authentication (#11563)
zeripath 93cfec8
Fix margin for attached top header on code review (#11571)
CirnoT d63db47
Fix margin on PR form (#11566)
CirnoT 969e612
Right-align status icon on pull request commit history (#11594)
CirnoT df51c5d
Style code review comment for arc-green (#11572)
CirnoT cae8954
Fix styling for PR merge section when no checks (#11609)
CirnoT 446c73c
Make issues.force_push_codes message shorter (#11575)
CirnoT 6c777d5
Fix missing styling for shabox on PR commit history (#11625)
CirnoT 082df4c
[skip ci] Updated translations via Crowdin
GiteaBot a5156f5
Apply padding to approval icons on PR list (#11622)
CirnoT a751389
Fix numbr of files, total additions, and deletions (#11614)
zeripath 6ddfb0b
Add link to owners election tickets, reorder to most-recent first (#1…
strk 1d7f57d
[skip ci] Updated translations via Crowdin
GiteaBot 18c335f
When must change password only show Signout (#11600)
zeripath 83dc522
Fix alignment for commits on dashboard (#11595)
mrsdizzie 3f7272f
[skip ci] Updated translations via Crowdin
GiteaBot ee1d1a7
Use -1 to disable key algorithm type in ssh.minimum_key_sizes (#11635)
zeripath 6a01886
Return json on 500 error from API (#11574)
6543 580be49
Handle expected errors in AddGPGkey API (#11644)
6543 371ee8a
Add debug option to hooks (#11624)
zeripath 6ac6461
Default MSSQL port 0 to allow automatic detection by default (#11642)
zeripath b696fee
Exclude generated files from language statistics (#11653)
lafriks 9fd31d2
translate: Change translate for admin.config.enable_captcha (#11657)
a1012112796 8e0c05e
Doctor check & fix db consistency (#11111)
6543 5f30b77
[skip ci] Updated translations via Crowdin
GiteaBot 16ba303
Fix missing authorization check on pull for public repos of private/l…
CirnoT a2e30fe
Update emoji regex (#11584)
mrsdizzie 1857768
Normalize avatar radius (#11589)
CirnoT 8a72579
Add API Endpoint for Branch Creation (#11607)
tle-huu b22038f
Fix issue with DiffIndex on initial commit (#11677)
zeripath f362530
Add logging to long migrations (#11647)
zeripath 32a9fcf
Make tabular menu styling consistent for arc-green (#11570)
CirnoT 6c2b002
Change language statistics to save size instead of percentage (#11681)
lafriks 6e23696
Fix language stat calculation (#11692)
CirnoT 8d668c7
Update Caddy reverse-proxy instructions (#11655)
TheLastZombie 08c74f6
Narrow down Edge version in browser support docs (#11640)
silverwind 99ee0eb
models: include LFS when calculating repo size (#11060)
cuonglm 192940f
Add changelog for 1.11.6 (#11695) (#11700)
guillep2k f29b101
Handle expected errors in FileCreate & FileUpdate API (#11643)
6543 73f440b
[skip ci] Updated translations via Crowdin
GiteaBot e0f7d79
Issue/Pull expose IsLocked Property on API (#11708)
6543 cddc418
log slow tests (#11487)
zeripath f287d33
Update emoji dataset with skin tone variants (#11678)
mrsdizzie 6fcd6fc
Properly truncate system notices (#11714)
zeripath 746a69e
Fix chardet test and add ordering option (#11621)
zeripath 3d520af
Show full GPG commit status on PR commit history (#11702)
CirnoT 40ef33e
Allow site admin to disable mirrors (#11740)
jolheiser 72d0b73
[Contrib] Change License Link to Full CC0 Legalcode (PP and TOS) (#10…
bagasme 319dff6
Add missing templates (#11729)
S7evinK e8c633f
Fix styling for commiter on diff view (#11715)
CirnoT a797c15
bug: fix wrong poster message for code comment on Pull view (#11721)
a1012112796 ccc712a
[skip ci] Updated translations via Crowdin
GiteaBot 7c81ee3
Update from-package.zh-tw.md (#11626)
doggy8088 0124154
Fix message wrapping on PR commit list (#11616)
CirnoT a01d040
[skip ci] Updated translations via Crowdin
GiteaBot b33f2d4
export monaco editor on window.codeEditors (#11739)
silverwind afc2333
Fix verification of subkeys of default gpg key (#11713)
zeripath db54b71
[skip ci] Updated translations via Crowdin
GiteaBot 6eb18a6
[API] on 500 error only show message if gitea in dev mode (#11641)
6543 262ed2b
[skip ci] Updated translations via Crowdin
GiteaBot 01cef4f
Don't put integration test data outside of test folder (#11746)
mrsdizzie 9d9c136
Alpine 3.12 (#11720)
techknowlogick 8d92802
Update fomantic-ui to 2.8.5 (#11736)
silverwind 0178bbf
Include query in sign in redirect (#11579)
mrsdizzie 6757c0d
[API] Expose allowed Reactions (#11735)
6543 f92edf7
API: Return error when Mirrors globaly disabled and like to create on…
6543 8fddeeb
Fix bug with globally disabling mirror (#11760)
6543 4bfb0ad
European Portuguese translation (#11568)
emansije dd5983f
Fix to allow comment poster to edit or delete his own comments (#11671)
a1012112796 8f97277
Provide diff and patch API endpoints (#11751)
zeripath 6a11203
Add internal-repo octicon for public repos of private org (#11529)
CirnoT b8452ad
Fix typo (#11773)
dacheng-gao 8b9a90f
[skip ci] Updated translations via Crowdin
GiteaBot dca9a16
Add compare link to releases (#11752)
jolheiser 32bfe50
Add hide activity option (#11353)
l-jonas f7583ca
[skip ci] Updated translations via Crowdin
GiteaBot 40bd1d5
Dump: add output format tar and output to stdout (#10376)
PhilippHomann 85499a8
[skip ci] Updated translations via Crowdin
GiteaBot 0524a25
Fix timezone on issue deadline (#11697)
CirnoT 2af091e
[skip ci] Updated translations via Crowdin
GiteaBot 493d1d6
Increase maximum SQLite variables count to 32766 (#11696)
CirnoT 27c4a08
1.11.6 is latest version (#11780)
techknowlogick fe78b4f
Initialize SimpleMDE when making a code comment (#11749)
zeripath e530f6d
[skip ci] Updated translations via Crowdin
GiteaBot 29cb97d
Fix align issues and decrease avatar size on PR timeline (#11689)
CirnoT 73fb2f2
[skip ci] Updated translations via Crowdin
GiteaBot 1467092
Fix missing CGO_EXTRA_FLAGS build arg for docker (#11782)
CirnoT a0d8ebc
Fix visibility of forked public repos from private orgs (#11717)
CirnoT a282991
Add language statistics API endpoint (#11737)
lafriks f880a03
[skip ci] Updated translations via Crowdin
GiteaBot e38eba1
Fix doer of rename repo (#11789)
a1012112796 10fb242
[skip ci] Updated translations via Crowdin
GiteaBot 5b06f90
In File Create/Update API return 404 if Branch does not exist (#11791)
6543 fdff2e8
Work around fomantic 2.8.5 bugs (#11767)
CirnoT dee33df
Add option to API to update PullRequest base branch (#11666)
6543 661c33c
Ensure rejected push to refs/pull/index/head fails nicely (#11724)
zeripath 8117a23
[skip ci] Updated translations via Crowdin
GiteaBot cd3c9c4
give gitea time to calculate language stats (#11812)
6543 a988057
Honor DEFAULT_PAGING_NUM for API (#11805)
CirnoT 4d01190
Remove page size limit comment from swagger (#11806)
CirnoT b7dd0fd
Use crispEdges rendering for octicon-internal-repo (#11801)
CirnoT 3dde1b4
Fix reply octicon (#11821)
jolheiser 5b75f9e
Refactor: Remove Dependencys from Migration v112-v119 (#11811)
6543 9481d81
rework eslint config (#11615)
silverwind d18205c
API allow to create closed milestones (#11745)
6543 9cd3512
API expose usefull General Repo settings settings (#11758)
6543 bd25e14
[skip ci] Updated translations via Crowdin
GiteaBot 8684090
fix a small nit (#11834)
a1012112796 26bb724
Use DEFAULT_PAGING_NUM instead of MAX_RESPONSE_ITEMS in ListOptions (…
CirnoT 9fe48da
Fix inserting excerpt on compare diff (#11833)
CirnoT 40341bf
Replace jquery-datetimepicker with native date input (#11684)
silverwind 6e7bcf9
Re-center the cog on the center of the lock (#11844)
zeripath 9fcc8f2
Don't add same line code comment box twice (#11837)
silverwind 32253f8
Don't consider tag refs as valid for branch name (#11847)
CirnoT 3c760c5
Update JS dependencies (#11842)
silverwind 789b642
Set the base url when migrating from Gitlab using access token or use…
gernoteger 8d82012
Prevent panic on empty HOST for mysql (#11850)
zeripath 4ee891b
cloudron: update link to demo (#11857)
gramakri a8bf66c
Show exact tag for commit on diff view (#11846)
CirnoT f933242
Add migration to set IsArchived false if it is null (#11853)
zeripath 14bce84
Improve label edit buttons labels (#11841)
silverwind ce1d709
Fix commit search in all branches (#11849)
CirnoT d1cb2f6
[skip ci] Updated translations via Crowdin
GiteaBot 899aae2
Handle more pathological branch and tag names (#11843)
zeripath aa9594d
Fix search form button overlap (#11840)
CirnoT bb8eca3
[skip ci] Updated translations via Crowdin
GiteaBot bacc22e
Fix nil pointer in default issue mail template (#11862)
mrsdizzie eeb0bfc
Add automatic JS license generation (#11810)
silverwind aa894f2
Fix 500 error on repos with no tags (#11870)
mrsdizzie d5e627f
[skip ci] Updated translations via Crowdin
GiteaBot c3c7a9c
Fix repo internal icon when avatar is present (#11873)
CirnoT f670b6c
Disable all typographic replacements in markdown renderer (#11871)
silverwind f85efe6
Rework api/user/repos for pagination (#11827)
CirnoT 38642fc
ui: Show update branch item in merge box when it's necessary (#11761)
a1012112796 4d7e78e
Only write to global gitconfig if necessary (#11876)
zeripath b2ab0e8
Invalidate comments when file is shortened (#11882)
zeripath fb11659
[skip ci] Updated translations via Crowdin
GiteaBot 5dc8207
Better align items using flex within review request box (#11879)
CirnoT 174cdd3
Vertically align review icons on repository sidebar (#11880)
CirnoT 74f3d7c
[skip ci] Updated translations via Crowdin
GiteaBot 817656e
Rework blame template and styling (#11885)
CirnoT 639b747
Fix alignment for show/hide outdated link on resolved conversation (#…
CirnoT 69a49a4
Upgrade xorm to v1.0.2 (#11900)
lunny ab3762b
Make repository size unclickable on repo summary bar (#11887)
CirnoT c7a2f71
pq -> v1.7.0 (#11905)
techknowlogick a591288
UI: Fix wrong closing tag (#11910)
6543 ede58eb
Update CommitsAhead CommitsBehind on Pull BaseBranch Change too (#11912)
6543 16d2ca0
Fix double divider on issue sidebar (#11919)
CirnoT a1b69de
Use ID or Where to instead directly use Get when load object from dat…
lunny 6c84648
upgrade to use testfixtures v3 (#11904)
techknowlogick 03a476f
Global default branch setting (#11918)
techknowlogick 938eaf4
Update to go-git v5.1.0 (#11936)
zeripath 6b2f705
Align show/hide outdated button on code review block (#11932)
CirnoT 661e813
Update Fomantic-UI to 2.8.6 and remove old workarounds (#11933)
CirnoT c1ee70b
Rename custom/conf/app.ini.sample to custom/conf/app.example.ini for …
lunny d2ba000
Use google/uuid to instead satori/go.uuid (#11943)
lunny 2bcb3b8
Fix commenting on non-utf8 encoded files (#11916)
zeripath 8c7f6de
recommend bindata for building (#11938)
techknowlogick dbe79e7
Changelog v1.11.7 (#11953) (#11956)
6543 f646707
Changelog v1.12.0 (#11927) (#11957)
6543 4bd316b
Fix scrollable header on dropdowns (#11893)
CirnoT aa802b1
Update docs to specify utf8mb4 default (#11962)
silverwind e010af1
1.12.0 is latest stable version (#11964)
techknowlogick a383350
Use only first line of commit when creating referenced comment (#11960)
CirnoT 833e10e
For language detection do not try to analyze big files by content (#1…
lafriks f060a20
Use enry language type to detect special languages (#11974)
lafriks 82f6640
Add serviceworker.js to KnownPublicEntries (#11992)
silverwind f0e0072
Add public/img/svg to WEBPACK_DEST_ENTRIES (#11993)
silverwind 4bdd4cf
Handle multiple merges in gitgraph.js (#11996)
zeripath 011b2ae
Add pagination headers on endpoints that support total count from dat…
CirnoT 1bde14a
Adds a TODOs Badge to the README (#11999)
patrickdevivo e9237f3
Use octicons for all repo header buttons (#11890)
CirnoT 6c006d5
Fix missing styling for dropdown icon on review button (#11998)
CirnoT 563572b
Changelog for v1.11.8 and v1.12.1 (#12006) (#12007)
lafriks 2ad9ce8
Fix typo (#12013)
dacheng-gao bef9356
Make tabs smaller (#12003)
silverwind f85972e
API: Move AllowedReactions endpoint into GetGenneralUI endpoint + cre…
6543 9a04944
Fix sticky diff stats container (#12002)
CirnoT d0b8ee1
Use label to describe repository type (#11891)
CirnoT 0aaba3b
Disable dropzone's timeout (#12024)
silverwind ed640aa
[skip ci] Updated translations via Crowdin
GiteaBot 4c4abb1
Don't use -webkit-font-smoothing (#12029)
mrsdizzie bebbf01
fix bug about can't skip commits base on base branch (#11555)
a1012112796 0d24c06
[UI] Sortable Tables Header By Click (#7980)
6543 3cf3e2f
Update Goldmark v1.1.25 -> v1.1.32 (#12048)
6543 7cbbbd4
Fix comments webhook panic (#12046)
cornelk bb2fa20
Fix gitgraph branch continues after merge (#12044)
zeripath e8f63ad
Use Fomantic's fluid padded for blame full width (#12023)
CirnoT 143bddb
Add org avatar on top of internal repo icon (#11895)
CirnoT 0866015
Show description on individual milestone view (#12055)
mrsdizzie b1fc8b9
Shorten markdown heading anchors links (#11903)
silverwind 91c620b
[skip ci] Updated translations via Crowdin
GiteaBot c115fb4
Disable go module when downloading global binaries (#12030)
silverwind 3f7a39a
Fix some periods and language usage in en-US locale (#12067)
linkjay ddeca12
Fix swagger docs for /repos/issues (#12069)
CirnoT f0fb491
[skip ci] Updated translations via Crowdin
GiteaBot 868b917
Do not override API issue pagination with UI settings (#12068)
CirnoT e11abc2
Move fomantic and jQuery to main webpack bundle (#11997)
silverwind 9cf0e9f
Use custom SVGs for commit signing lock icon (#12017)
CirnoT 4f9107e
Fix potential make error related to fomantic files (#12079)
silverwind 89b7ebc
Fix commit icon position (#12087)
lafriks 845b9f1
Server-side syntax highlighting for all code (#12047)
mrsdizzie 0e553e3
Fix merge section in dark theme (#12086)
lafriks 4d1edb8
Ensure BlameReaders close at end of request (#12102)
zeripath 7f27870
Improve arc-green code colors (#12111)
silverwind 2221c54
[skip ci] Updated translations via Crowdin
GiteaBot f767a5a
Fix missing gitgraph css import (#12112)
silverwind 2ffcd54
Provide option to unlink a fork (#11858)
zeripath a8c803a
Fix repo API listing stability (#12057)
cboylan 73c86fa
[skip ci] Updated translations via Crowdin
GiteaBot 680d4f5
Fix ui bug in wiki commit page (#12089)
a1012112796 cf4bdb1
Move EventSource to SharedWorker (#12095)
zeripath d35a447
templates/repo/empty.tmpl : fix repo setup instructions (#12122)
ashimokawa 71f3e1f
Bugfix for shared event source (#12129)
zeripath fb2723c
Re-fix #12095 again (#12138)
zeripath 690ce52
Rewrite GitGraph.js (#12137)
zeripath d4455f1
Remove spurious logging (#12139)
zeripath 7e405da
Enable a few more eslint rules (#12145)
silverwind 1d583c4
properly set symbolic-ref HEAD when a repo is created with a non-mast…
xenofem fa15381
Ensure tabs wrap correctly on user profile page (#12144)
scar45 00b1cf1
Multiple small admin dashboard fixes (#12153)
zeripath b68d3cf
Use hash of repo path, ref and entrypath as cache key (#12151)
lafriks c4645d4
[skip ci] Updated translations via Crowdin
GiteaBot 5c46132
Pause, Resume, Release&Reopen, Add and Remove Logging from command li…
zeripath ef62887
Update the wiki repository remote origin while update the mirror repo…
yisiliang a8b61c6
Fonts rework (#12114)
silverwind b06bdba
[skip ci] Updated translations via Crowdin
GiteaBot c3fb904
models: break out of loops (#12159)
alrs c479749
fix a spelling error (#12163)
9nix00 1d554d5
Ensure Subkeys are verified (#12155)
zeripath ef37f0f
Fix U2F button icon (#12167)
silverwind 409a8ae
Adjust margin-top for repo header label (#12174)
CirnoT 1e35e98
Decrease the num_stars when deleting a repo (#11954)
a1012112796 6543353
Trim to 255 runes instead of bytes (#12150)
juergenhoetzel 0b5b3a3
Remove newline when highlighting random chunks of code (#12180)
mrsdizzie adc87c5
Enable cloning via Git Wire Protocol v2 over HTTP (#12170)
billiegoose c1815ef
Update JS dependencies (#12181)
silverwind bb4c84b
Fix regression: Gitea commits API again returns commit summaries, not…
kbadk ef132f1
Merge branch 'CLI_users' of https://github.com/ydelafollye/gitea into…
c7c738f
Revert "Update models/user.go"
3990ea2
Merge branch 'master' into CLI_users
zeripath 1f47e3d
Merge branch 'master' into CLI_users
techknowlogick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,28 +55,40 @@ Starts the server: | |
Admin operations: | ||
|
||
- Commands: | ||
- `create-user` | ||
- Options: | ||
- `--name value`: Username. Required. As of gitea 1.9.0, use the `--username` flag instead. | ||
- `--username value`: Username. Required. New in gitea 1.9.0. | ||
- `--password value`: Password. Required. | ||
- `--email value`: Email. Required. | ||
- `--admin`: If provided, this makes the user an admin. Optional. | ||
- `--access-token`: If provided, an access token will be created for the user. Optional. (default: false). | ||
- `--must-change-password`: If provided, the created user will be required to choose a newer password after | ||
- `user`: | ||
- `list`: | ||
- Options: | ||
- `--admin`: List only admin users. Optional. | ||
- Description: lists all users that exist | ||
- Examples: | ||
- `gitea admin user list` | ||
- `delete`: | ||
- Options: | ||
- `--id`: ID of user to be deleted. Required. | ||
- Examples: | ||
- `gitea admin user delete --id 1` | ||
- `create`: | ||
- Options: | ||
- `--name value`: Username. Required. As of gitea 1.9.0, use the `--username` flag instead. | ||
- `--username value`: Username. Required. New in gitea 1.9.0. | ||
- `--password value`: Password. Required. | ||
- `--email value`: Email. Required. | ||
- `--admin`: If provided, this makes the user an admin. Optional. | ||
- `--access-token`: If provided, an access token will be created for the user. Optional. (default: false). | ||
- `--must-change-password`: If provided, the created user will be required to choose a newer password after | ||
the initial login. Optional. (default: true). | ||
- ``--random-password``: If provided, a randomly generated password will be used as the password of | ||
- ``--random-password``: If provided, a randomly generated password will be used as the password of | ||
the created user. The value of `--password` will be discarded. Optional. | ||
- `--random-password-length`: If provided, it will be used to configure the length of the randomly | ||
- `--random-password-length`: If provided, it will be used to configure the length of the randomly | ||
generated password. Optional. (default: 12) | ||
- Examples: | ||
- `gitea admin create-user --username myname --password asecurepassword --email [email protected]` | ||
- `change-password` | ||
- Options: | ||
- `--username value`, `-u value`: Username. Required. | ||
- `--password value`, `-p value`: New password. Required. | ||
- Examples: | ||
- `gitea admin change-password --username myname --password asecurepassword` | ||
- Examples: | ||
- `gitea admin create-user --username myname --password asecurepassword --email [email protected]` | ||
- `change-password`: | ||
- Options: | ||
- `--username value`, `-u value`: Username. Required. | ||
- `--password value`, `-p value`: New password. Required. | ||
- Examples: | ||
- `gitea admin change-password --username myname --password asecurepassword` | ||
- `regenerate` | ||
- Options: | ||
- `hooks`: Regenerate git-hooks for all repositories | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.