summaryrefslogtreecommitdiffstats
path: root/models/user.go
Commit message (Collapse)AuthorAgeFilesLines
* Change EncodePasswd to HashPassword (#3329)Morgan Bazalgette2018-01-081-4/+4
| | | | | | * Change EncodePasswd to HashPassword * Create test+benchmark for HashPassword
* Fix ignored errors when checking if organization, team member (#3177)Ethan Koenig2017-12-211-2/+12
|
* Improvements for supporting UI Location (#3146)Lunny Xiao2017-12-141-8/+0
| | | | | | * improvements for supporting UI Location * improved the comment
* Refactor struct's time to remove unnecessary memory usage (#3142)Lunny Xiao2017-12-111-8/+6
| | | | | | | | | | | | | | * refactor struct's time to remove unnecessary memory usage * use AsTimePtr simple code * fix tests * fix time compare * fix template on gpg * use AddDuration instead of Add
* Add reactions to issues/PR and comments (#2856)Lauris BH2017-12-041-0/+1
|
* Fix avatar URLs (#3069)Ethan Koenig2017-12-031-5/+11
| | | | | | * Fix avatar URLs * import order
* Enable admin to search by email (#2888)Ethan Koenig2017-11-261-8/+13
|
* Add checks for commits with missing author and time (#2771)Lauris BH2017-10-261-4/+11
| | | | | | * Add checks for commits with missing author and time * Fix validate commits with emails if it has no Author
* Hide unactive on explore users and some refactors (#2741)Lunny Xiao2017-10-241-42/+32
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Use buffersize to reduce database connection when iterate (#2724)Lunny Xiao2017-10-211-1/+1
| | | | | | | | * use buffersize to reduce database connection when iterate * fix typo * add default value on app.ini comment
* Replace deprecated Id method with ID (#2655)Ethan Koenig2017-10-051-6/+6
|
* Use session when creating user (#2638)Ethan Koenig2017-10-031-16/+20
|
* Use AfterLoad instead of AfterSet on Structs (#2628)Lunny Xiao2017-10-011-10/+5
| | | | | | | | * use AfterLoad instead of AfterSet on Structs * fix the comments on AfterLoad * fix the comments on action AfterLoad
* Reduce usage of allcols on update (#2596)Lunny Xiao2017-09-251-1/+5
| | | | | | * reduce usage of allcols on update * fix bug and tests
* Prevent sending emails and notifications to inactive users (#2384)David Schneiderbauer2017-09-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | * Filter inactive users before sending emails or creating browser notifications Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * fix formatting issues Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * included requested changes Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * optimized database queries * rebasing new master and add tablenames for clarification in xorm queries * remove escaped quotationmarks using backticks Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Use created & updated instead BeforeInsert & BeforeUpdate (#2482)Lunny Xiao2017-09-131-10/+2
| | | | | | | | | | | | * use created & updated instead BeforeInsert & BeforeUpdate * fix vendor checksum * only show generated SQL when development mode * remove extra update column updated_unix * remove trace config
* Disable custom Git Hooks globally via configuration file (#2450)techknowlogick2017-09-121-1/+1
| | | | | | | | * Create option to disable githooks globally via configuration file * Update comment in app.ini to align with @ethantkoenig's suggestion Signed-off-by: Matti Ranta <matti@mdranta.net>
* some refactors for issue and comments (#2419)Lunny Xiao2017-08-301-2/+10
|
* Only update needed columns when update user (#2296)Lunny Xiao2017-08-121-4/+29
| | | | | | * only update needed columns when update user * fix missing update_unix column
* Fix username rendering bug (#2122)Ethan Koenig2017-07-121-4/+0
| | | | | | | | * Fix username rendering bug * XSS integration test * Migration to unescape user full names
* Use default avatar on errorEthan Koenig2017-06-291-3/+2
|
* Refactor session close as xorm already does everything needed internally (#2020)Lauris BH2017-06-211-3/+3
|
* Fix status table race condition (#1835)Ethan Koenig2017-05-311-2/+1
|
* Rename RepoCreationNum -> MaxCreationLimit (#1766)Jonas Östanbäck2017-05-241-2/+2
|
* Fix and test for delete user (#1713)Ethan Koenig2017-05-201-20/+24
| | | | | | | | * Fix and test for delete user * Run updates in batches * Unit test
* Admin should always be allowed to create repos even if hit limit (#1765)Jonas Östanbäck2017-05-201-0/+3
|
* LDAP user synchronization (#1478)Lauris BH2017-05-101-0/+127
|
* Add configuration option for default permission to create Organizations (#1686)Lauris BH2017-05-081-1/+1
|
* Sanitation fix from Gogs (#1461)Kim "BKC" Carlbäcker2017-04-131-2/+2
| | | | | | | | | | | | | | | | * Santiation fix from Gogs * Linting * Fix build-errors * still not working * Fix all the things! * gofmt * Add code-injection checks
* 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
|