aboutsummaryrefslogtreecommitdiffstats
path: root/models/user.go
Commit message (Collapse)AuthorAgeFilesLines
* fix delete user failed on sqlite (#1321)Lunny Xiao2017-03-201-1/+1
|
* Login via OpenID-2.0 (#618)Sandro Santilli2017-03-171-0/+1
|
* Fix typos in models/ and modules/ (#1248)Ethan Koenig2017-03-151-3/+3
|
* Refactor and fix incorrect comment (#1247)Ethan Koenig2017-03-151-3/+3
|
* Reserve the "explore" user/org name (#1222)Sandro Santilli2017-03-121-1/+1
|
* Move user_follow to separate file (#1210)Ethan Koenig2017-03-111-72/+0
| | | Also add unit tests
* fix random avatars (#1147)Lunny Xiao2017-03-081-0/+8
|
* fix avatar bug #1114 (#1122)Lunny Xiao2017-03-061-8/+15
| | | This PR fix the avatar bug described in #1114. This will fix random avatar is blank problem and potential delete avatars dir problem.
* Bug fixed for org avatar caused by #1049 (#1070)Lunny Xiao2017-02-271-2/+2
| | | | | | * bug fixed for org avatar caused by #1049 * use isfile only
* Fix avatar enumable (#1049)Lunny Xiao2017-02-251-3/+5
| | | | | | * fix avatar enumable * fix import style
* fix #13 (#1042)Lunny Xiao2017-02-251-12/+27
|
* refactor for searching user (#1038)Lunny Xiao2017-02-251-11/+13
| | | | | | | | * refactor for searching user * fix like bug * better format for builder cond
* Oauth2 consumer (#679)Willem van Dreumel2017-02-221-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | * initial stuff for oauth2 login, fails on: * login button on the signIn page to start the OAuth2 flow and a callback for each provider Only GitHub is implemented for now * show login button only when the OAuth2 consumer is configured (and activated) * create macaron group for oauth2 urls * prevent net/http in modules (other then oauth2) * use a new data sessions oauth2 folder for storing the oauth2 session data * add missing 2FA when this is enabled on the user * add password option for OAuth2 user , for use with git over http and login to the GUI * add tip for registering a GitHub OAuth application * at startup of Gitea register all configured providers and also on adding/deleting of new providers * custom handling of errors in oauth2 request init + show better tip * add ExternalLoginUser model and migration script to add it to database * link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed * remove the linked external account from the user his settings * if user is unknown we allow him to register a new account or link it to some existing account * sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers) * from gorilla/sessions docs: "Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!" (we're using gorilla/sessions for storing oauth2 sessions) * use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
* Fix all the bugs in issues and pulls on dashboard (#943)Lunny Xiao2017-02-171-0/+28
| | | | | | | | * fix all the bugs in issues and pulls on dashboard * small fix and refactor * add method getRepoIDs for IssueList
* feat: Able to disable non-admin to create new organization (#927)Bo-Yi Wu2017-02-141-1/+1
|
* Implement basic Open Graph support. (#901)Andrew2017-02-111-0/+5
|
* feat: Add search bar on user profile page. (#787)Bo-Yi Wu2017-02-041-1/+1
|
* Cleanup log messagingGabriel Jackson2017-02-021-4/+4
| | | | | | | | | This change corrects a few logging issues: * Standardized formatting errors with '%v'. * Standardized failure warning word usage. * Corrected an instance of using the standard log library when the gitea log library should be used instead.
* fix: ignore email notifications if user is not active. (#820)Bo-Yi Wu2017-02-021-1/+9
|
* Add option to app.ini to enable local import paths (#724)Bwko2017-01-231-0/+3
|
* Fix permission bugs in team API (#647)Ethan Koenig2017-01-201-1/+1
|
* API Endpoints for organization members (#645)Ethan Koenig2017-01-201-2/+4
|
* Add Keep email private (see issue #571). (#571)derSuessmann2017-01-081-15/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Add site-wide option DEFAULT_KEEP_EMAIL_PRIVATE. - Add the new option to the install and admin/config pages. - Add the new option to app.ini in the service section. - Add the new option to the settings struct. - Add English text strings to i18n. - Add field KeepEmailPrivate to user struct. - Add field KeepEmailPrivate to user form. - Add option to UI. - Add using noreply email address if user has "Keep Email Private". An email address <LowerName>@<NO_REPLY_ADDRESS> is now used in commit messages (and hopefully all other git log relevant places). The change relies on the fact that git commands should use user.NetGitSig(). - Add hiding of email address in UI, if user has set "Keep Email Private". - Add condition to show email address only on explore/users and user pages, if user has not set "Keep Email Private". - Add noreply email in API if set "Keep Email Private". - Add a new service setting NO_REPLY_ADDRESS. The value of this setting is used as the domain part for the user's email address in git log, iff he decides to keep his email address private. If the user decides to keep his email address private and this option is not set 'noreply.example.org' is used, which no MTA should send email to. Add NO_REPLY_ADDRESS to conf/app.ini.
* Create missing database indexes (#596)Andrey Nering2017-01-061-4/+4
|
* Check primary email address fields on CreateUser (#556)Berk Demirkır2017-01-051-0/+9
| | | | | | | | | | * Check primary email address fields on CreateUser As this check wasn't available, uid=1 (and possibly guests too, if registration is open) is able to register new users with existing email addresses. This leads to numerous 500 errors. * Update user.go * Lower the email first. Then check
* Fix typos in models/ (#576)Ethan Koenig2017-01-051-3/+3
|
* Restrict creating organisations by user (#193)Schwobaland2016-12-311-5/+12
| | | | | | | | | | | | | | | | | | | | | | * 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
* fix 500 when delete orgnization and resolved #486Lunny Xiao2016-12-271-2/+4
|
* Added sorting to organizations, repos & users page (#222)Bwko2016-12-241-6/+12
|
* API Endpoint for watching (#191)Ethan Koenig2016-12-241-0/+15
|
* Fix random string generator (#384)Denis Denisov2016-12-201-3/+7
| | | | | | | | | | | * 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
* Don't use custom PBKDF2 function (#382)Lunny Xiao2016-12-151-1/+2
|
* Safe compare password (timing attack) (#338)Denis Denisov2016-12-031-1/+2
|
* Catch os... errorsBwko2016-12-021-4/+17
|
* Fix breakage from vendor-updateKim "BKC" Carlbäcker2016-11-291-1/+1
|
* Lint models/user.goBwko2016-11-281-18/+46
|
* Fixes typosBwko2016-11-271-1/+1
|
* Golint fixed for modules/setting (#262)Lunny Xiao2016-11-271-7/+7
| | | | | | * golint fixed for modules/setting * typo fixed and renamed UNIXSOCKET to UnixSocket
* golint fixed for modules/avatarLunny Xiao2016-11-251-1/+1
|
* API endpoints for starsEthan Koenig2016-11-161-0/+15
|
* Remember diff view style (#163)Andrey Nering2016-11-131-0/+8
|
* Fixes possible vulnerabilities with keyword hijacking (#20)LefsFlare2016-11-121-4/+4
| | | | | | - Added public entries to reserved keywords list - Rename variables - Derped comment
* bug fixed caused by #153 (#154)Lunny Xiao2016-11-121-1/+1
|
* fixed bug #151 caused Find should be Get (#153)Lunny Xiao2016-11-121-10/+17
|
* Fix import path of go-sdk (#141)Sandro Santilli2016-11-111-1/+1
| | | | From code.gitea.io/go-sdk/gitea To code.gitea.io/sdk/gitea
* Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queriesThibault Meyer2016-11-101-8/+8
|\ | | | | | | | | | | | | | | | | # Conflicts: # models/git_diff.go # models/issue.go # models/org.go # models/pull.go # models/repo.go
| * Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-8/+8
| | | | | | | | | | | | | | - 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
* | Rewrite XORM queriesThibault Meyer2016-11-101-28/+55
|/
* Merge pull request #121 from joubertredrat/feature-last-loginLunny Xiao2016-11-101-0/+9
|\ | | | | Last Login for admin manage your users
| * Support to last login featureJoubert RedRat2016-11-091-0/+9
| |