aboutsummaryrefslogtreecommitdiff
path: root/models/user.go
Commit message (Collapse)AuthorAge
* internal: move packages under this directory (#5836)Unknwon2019-10-24
| | | | | | | | | | | | | | | | | | * Rename pkg -> internal * Rename routes -> route * Move route -> internal/route * Rename models -> db * Move db -> internal/db * Fix route2 -> route * Move cmd -> internal/cmd * Bump version
* Enable Go modules (#5835)Unknwon2019-10-23
| | | | | | | | | | | | | | | | * Remove vendor * Enable Go modules * ci: add command to fetch dependencies * ci: update setting * ci: update settings * Require Go 1.11 * Rename module name to gogs.io/gogs
* vendor: update github.com/gogs/go-gogs-clientUnknwon2018-12-03
| | | | Bring fixes for #5538
* models: rename Id to IDUnknwon2018-08-16
|
* repo: add changes to repository avatar feature (#5221)Unknwon2018-06-17
|
* models: skip JSON for fields skipped by XORMUnknwon2018-06-09
| | | | Reduce output JSON size by backup command
* *: rename "gogits" to "gogs"Unknwon2018-05-27
|
* security: prevent same passcode from being reusedUnknwon2018-05-21
| | | | Reported by @cezar97.
* models: rename RewriteAllPublicKeys -> RewriteAuthorizedKeysUnknwon2018-03-30
|
* models: fix #4692 and typo in comments (#4695)Sb2017-08-13
|
* repo: fix panic on pull request submit (#4572)Unknwon2017-07-14
|
* Refactoring: remove sessionRelease()Unknwon2017-06-11
| | | | XORM supports automatic roll back in session Close() already.
* models: remove redundant tags for primary keysUnknwon2017-05-21
|
* locale: sync from CrowdinUnknwon2017-05-17
|
* api/repo: improve migration error handlingUnknwon2017-04-07
|
* pkg/setting: rename {AppUrl, AppSubUrl} -> {AppURL, AppSubURL}Unknwon2017-04-06
|
* Refactoring: rename and simplify pkg/tool functionsUnknwon2017-04-06
|
* 2fa: initial support (#945)Unknwon2017-04-06
|
* Refactoring: rename pkg/base -> pkg/toolUnknwon2017-04-05
|
* Refactoring: rename modules -> pkgUnknwon2017-04-04
| | | | | | | | Reasons to change: 1. Shorter than 'modules' 2. More generally used by other Go projects 3. Corresponds to the naming of '$GOPATH/pkg' directory
* user: remove sanitizer for FullName (#1937)Unknwon2017-03-23
|
* models: rename ErrUserNotExist -> errors.UserNotExistUnknwon2017-03-16
|
* refactoring: experimental with models/errors packageUnknwon2017-03-12
|
* models/user: explicitly select for organization typeUnknwon2017-03-10
|
* models/user: handle case when user doesn't belong to any organization (#4258)Unknwon2017-03-08
|
* models/user: better directory handling when change usernameUnknwon2017-03-07
| | | | | | | | Previously, if the user base directory somehow doesn't exist, the application throws 500 for failure of rename. Now it detects if the application should rename or just create a new directory.
* models/org: reduce to 2 SQL executions for GetOrgIDsByUserIDUnknwon2017-03-03
| | | | | | | This also addresses #4231. It is now ignoring nonexistent organizations returned from 'org_user' table. This was a bug caused in older version that didn't cleanup 'org_user' table when delete an organization.
* models/access: hasAccess only need userID not user objectUnknwon2017-02-23
|
* repo: assignee can be anyone who has read access (#3739)Unknwon2017-02-17
|
* Improve error handlingUnknwon2017-02-17
|
* Improve Open Graph Meta tags (#3664)Unknwon2017-02-11
|
* Able to disable non-admin to create new organization (#1556)Unknwon2017-02-10
| | | | | Add new config option '[admin] DISABLE_REGULAR_ORG_CREATION', by default it's 'false'.
* log: start using gopkg.in/clog.v1Unknwon2017-02-09
|
* Issue #3814 (#3903)Renato P. de Aquino2017-01-30
|
* Safe compare password (timing attack) (#4064)Denis Denisov2017-01-28
|
* Disable local path migration by default (#4033)Unknwon2017-01-26
| | | | | | | Site admin now has to enable manually by config option [repository] ENABLE_LOCAL_PATH_MIGRATION = true. Site admin always grants this permission, but regulars users have to be allowed by site admins in admin user panel.
* Fix dashboard issues/pull request countingUnknwon2016-12-27
|
* Added public entries to reserved keywords listFlare2016-12-21
| | | | Closes #3728
* Minor code fixUnknwon2016-12-21
|
* Don't use custom PBKDF2 function (#3952)leonklingele2016-12-21
| | | Instead, use golang.org/x/crypto/pbkdf2
* Fix random string generator (#3953)leonklingele2016-12-21
| | | | | | | | * Remove unused custom-alphabet feature of random string generator * Fix modulo-biased random string generator * Random string generator should return error if it fails to read random data via crypto/rand
* #3577 incorrect URL produced by AvatarLinkUnknwon2016-09-01
|
* #3515 use alert instead 500 for duplicated login source nameUnknwon2016-08-31
|
* #3505 use user’s info for committer and authorUnknwon2016-08-27
|
* #2246 fully support of webhooks for pull requestUnknwon2016-08-14
|
* Add support for federated avatars (#3320)Sandro Santilli2016-08-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for federated avatars Fixes #3105 Removes avatar fetching duplication code Adds an "Enable Federated Avatar" checkbox in user settings (defaults to unchecked) Moves avatar settings all in the same form, making local and remote avatars mutually exclusive Renames UploadAvatarForm to AvatarForm as it's not anymore only for uploading * Run gofmt on all modified files * Move Avatar form in its own page * Add go-libravatar dependency to vendor/ dir Hopefully helps with accepting the contribution. See also #3214 * Revert "Add go-libravatar dependency to vendor/ dir" This reverts commit a8cb93ae640bbb90f7d25012fc257bda9fae9b82. * Make federated avatar setting a global configuration Removes the per-user setting * Move avatar handling back to base tool, disable federated avatar in offline mode * Format, handle error * Properly set fallback host * Use unsupported github.com mirror for importing go-libravatar * Remove comment showing life exists outside of github.com ... pity, but contribution would not be accepted otherwise * Use Combo for Get and Post methods over /avatar * FEDERATED_AVATAR -> ENABLE_FEDERATED_AVATAR * Fix persistance of federated avatar lookup checkbox at install time * Federated Avatars -> Enable Federated Avatars * Use len(string) == 0 instead of string == "" * Move import line where it belong See https://github.com/Unknwon/go-code-convention/blob/master/en-US/import_packages.md Pity the import url is still the unofficial one, but oh well... * Save a line (and waste much more expensive time) * Remove redundant parens * Remove an empty line * Remove empty lines * Reorder lines to make diff smaller * Remove another newline Unknwon review got me start a fight against newlines * Move DISABLE_GRAVATAR and ENABLE_FEDERATED_AVATAR after OFFLINE_MODE On re-reading the diff I figured what Unknwon meant here: https://github.com/gogits/gogs/pull/3320/files#r73741106 * Remove newlines that weren't there before my intervention
* #3393 fix missing sub-url prefix in relative avatar linkUnknwon2016-08-07
|
* #3348 always use relative avatar link in the templateUnknwon2016-08-05
|
* #3281 fix x.Iterate returns nothing inside session scope with SQLite3Unknwon2016-07-26
|
* #1384 add pagination for repositoriesUnknwon2016-07-24
|