Denis Denisov
380e32e129
Fix random string generator ( #384 )
...
* 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
8 years ago
Lunny Xiao
ec87a75c00
golint fixed for modules/auth
8 years ago
Lunny Xiao
94da472717
Golint fixed for modules/setting ( #262 )
...
* golint fixed for modules/setting
* typo fixed and renamed UNIXSOCKET to UnixSocket
8 years ago
Lunny Xiao
659bc2814c
go lint fixed for routers/admin
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
Thibault Meyer
3a10a0c1ca
Ordering organizations and users by name
8 years ago
Sandro Santilli
864d1b1f9f
Fix type in unused constant name ( #111 )
...
* Write LDAP, SMTP, PAM, DLDAP back to all uppercase
* Fix type in unused constant name
* Other MixCased fixes
* Complete MixerCasing of template constants
* Re uppercase LTS and LDAPS suffixes
* Uppercase JSON suffix in constant names
* Proper case LoginNoType
* Prefix unexported template path constants with "tpl"
8 years ago
Sandro Santilli
aadd7dcdc3
And others
8 years ago
Sandro Santilli
05fd9d3f09
Security protocols
8 years ago
Sandro Santilli
7612b5ec40
More mixage
8 years ago
Sandro Santilli
60c82a8780
More...
8 years ago
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs ( #37 )
8 years ago
Unknwon
152e715999
models/login_source: code improvement
8 years ago
Unknwon
99c2ae7b35
#3515 use alert instead 500 for duplicated login source name
8 years ago
Thibault Meyer
6a81632e36
Fix typo CacheInternal -> CacheInterval ( #3432 )
8 years ago
Unknwon
b85927e488
#3091 show Git configs on admin panel
8 years ago
Sandro Santilli
90dd0657b5
Add support for federated avatars ( #3320 )
...
* 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
8 years ago
Unknwon
1f2e173a74
Refactor User.Id to User.ID
8 years ago
Unknwon
46e96c008c
Use struct for UI settings
8 years ago
Unknwon
c083d76567
#2937 able to prohibit user login
8 years ago
Unknwon
f1b8d52eb3
#2854 fix no mail notification when issue is closed/reopened
8 years ago
Unknwon
401bf944ef
Use SecurityProtocol to replace UseSSL in LDAP config
...
Initially proposed by #2376 and fixes #3068 as well.
8 years ago
Unknwon
149d62a648
#13 fix admin can't search private repos
...
- update glide info
8 years ago
Unknwon
2bf8494332
#13 finish user and repository search
...
Both are possible on explore and admin panel
8 years ago
Unknwon
514382e2eb
Rename module: middleware -> context
8 years ago
Unknwon
045f14fbd0
#1146 finsih UI work for access mode of collaborators
...
Collaborators have write access as default, and can be changed via repository
collaboration settings page to change between read, write and admin.
8 years ago
Unknwon
f946040fa9
#1891 attempt to fix expected invalid CSRF token
...
- Remove unused config settings `[picture] service`
8 years ago
Unknwon
8055a0bdac
Post work for #2637
...
Improve test cases, config settings, also show SSH config settings on admin config panel.
8 years ago
Unknwon
baaf6046a1
Minor fix for #2660
8 years ago
Josh Frye
c27038e392
Test mailer button. Addresses #1531
8 years ago
Unknwon
d8a994ef24
Move cron module to independent package
...
Make it easier to keep track of upstream changes and bug fixes
9 years ago
Adam Strzelecki
834d92a47b
LDAP: Fetch attributes in Bind DN context option
...
This is feature is workaround for #2628 (JumpCloud) and some other services
that allow LDAP search only under BindDN user account, but not allow any LDAP
search query in logged user DN context.
Such approach is an alternative to minimal permissions security pattern for
BindDN user.
9 years ago
Unknwon
04be8c0de5
#2554 reinitialize all repos from the db
...
- Update locales
9 years ago
Unknwon
3d5d61778a
#1938 #1374 disable password change for non-local users
9 years ago
Unknwon
2a0bb1fa90
#1575 Limit repo creation
9 years ago
Unknwon
89244b74c6
remember page number when delete repo
9 years ago
Unknwon
ca8ce793d1
#2063 Ability to delete repo from admin panel
9 years ago
Unknwon
978dc00305
APIs: admin users
9 years ago
Unknwon
f41360d864
#2052 advanced select ops for system notices
9 years ago
Unknwon
0be8b1b1a1
#2052 Ability to batch delete system notices
9 years ago
Adam Strzelecki
573305f3d3
LDAP: Optional user name attribute specification
...
Consider following LDAP search query example:
(&(objectClass=Person)(|(uid=%s)(mail=%s)))
Right now on first login attempt Gogs will use the text supplied on login form
as the newly created user name. In example query above the text matches against
both e-mail or user name. So if user puts the e-mail then the new Gogs user
name will be e-mail which may be undesired.
Using optional user name attribute setting we can explicitly say we want Gogs
user name to be certain LDAP attribute eg. `uid`, so even user will use e-mail
to login 1st time, the new account will receive correct user name.
9 years ago
Unknwon
efea642d6c
add admin op: delete missing repos
9 years ago
Unknwon
10427b2178
fix #1930
9 years ago
Unknwon
6f0a41b8b2
#1511 Allow local import only for admin users
9 years ago
Unknwon
932dbccb67
fix import path, fix #1782
9 years ago
Unknwon
21e13cb51e
#1525 Triggere mailer for admin created accounts
9 years ago
Unknwon
986447335d
#1693 minor fix
9 years ago
无闻
84c727ae66
Merge pull request #1693 from sapk/fix-admin-repo-new-ui
...
Fix admin repos new ui
9 years ago
无闻
ee1256cf74
Merge pull request #1691 from sapk/fix-admin-organization-new-ui
...
Fix admin organization new ui
9 years ago
Antoine GIRARD
dfc16d0879
Fix admin repos new ui
9 years ago
Antoine GIRARD
a8fd615adc
Fix indent in notice router
9 years ago
Antoine GIRARD
c98dad1cf3
New admin organization UI
9 years ago
Unknwon
0d5e57e4ae
#1689 minor fixes and update locale
9 years ago
Antoine GIRARD
3544dafb64
Fix indent
9 years ago
Antoine GIRARD
14a1101139
New admin notice UI based on user list example
9 years ago
Unknwon
3fb1b6a608
drop oauth2 feature support
9 years ago
Unknwon
f5c7f22cc8
#1637 able to skip verify for LDAP
9 years ago
Unknwon
2d1bb0cf49
#1633 admin delete user
9 years ago
Unknwon
b0bf4cc1cb
fix #1632 and #1606
9 years ago
Unknwon
83e747bfda
#697 and #1606 and new admin edit user UI
9 years ago
Unknwon
e5ed5904c6
#1606 GUI bug while adding ldap user
9 years ago
Unknwon
8e0a69f86a
#697 disable captcha and new admin create user UI
9 years ago
Unknwon
cd37fccdfb
#1625 remove auto_register and makes it default
9 years ago
Unknwon
10de16beb0
typo and README
9 years ago
Unknwon
be89802bd8
new admin user list UI
9 years ago
Unknwon
362d64df04
#1620 add allowed domains for SMTP auth
9 years ago
Unknwon
121a81a2c5
finish new edit auth UI
9 years ago
Unknwon
0617448282
finish new add auth UI
9 years ago
Unknwon
fa728d8dff
more minor fix on 1581
9 years ago
Sergio Benitez
2d1db4bf05
Added LDAP simple auth support.
9 years ago
Unknwon
ea454c21f7
#1542 A way to skip TLS verify for SMTP authentication
9 years ago
Girish Ramakrishnan
24d7a86a8d
Set IsAdmin using LDAP
...
The IsAdmin flag is set based on whether the admin filter
returned any result. The admin filter is applied with the user dn
as the search root.
In the future, we should update IsAdmin as well on each login.
Alternately, we can have a periodic sync operation.
9 years ago
Unknwon
b1696665bd
make cron task configurable
9 years ago
Sergio Benitez
7d84d4a8f0
Significantly enhanced LDAP support in Gogs.
9 years ago
Unknwon
dea3a8c6a4
WIP: create PR - choose branch
9 years ago
无闻
91ab2538c3
Merge pull request #1244 from jamesa/develop
...
Add full name field to admin's user edit page (fixes #1130 )
9 years ago
James
f3aab5dbe3
Add full name field to admin's user edit page ( fixes #1130 )
9 years ago
Paolo Borelli
182003aa41
Add PAM authentication
9 years ago
Unknwon
698b9e2acc
#1070 Clearer error message for illegal characters
9 years ago
Unknwon
211596f407
#1124 LDAP add and edit form are misleading
9 years ago
Unknwon
466facc009
#1067 : Deleting users should remove them from collaborator lists
...
- fix delete user but repository watches are not decreased
9 years ago
Unknwon
33894591a6
#851 : Edit Account does not take into consideration password rules
9 years ago
无闻
cd8b43d984
Merge pull request #915 from Lafriks/dev
...
Get username, name, surname and e-mail from LDAP server
10 years ago
Unknwon
6a23252edc
able to allow insecure certification of webhook for #891
10 years ago
Unknwon
f15fa9167a
cmd: code fix for #905
...
- routers/admin: add rewrite update hook operation
- conf/locale: update locale file due to ini behavior changes
- cmd/cert_stub.go: remove useless code
- cmd/fix.go: no longer need fix command(at least now)
10 years ago
Lauris BH
00653e52ee
Get username, name, surname and e-mail from LDAP server
10 years ago
fzerorubigd
6643647687
add afunction to rewrite all public keys on admin request
...
refs #763
10 years ago
Unknwon
81a44e4cd0
fix API changes
10 years ago
Unknwon
5338808600
fix #676
10 years ago
Unknwon
d75013a0e8
fix #580
10 years ago
Unknwon
2d8c414f8c
Fix #635
10 years ago
Unknwon
32dcaefafa
fox #620
10 years ago
Unknwon
9e22840483
fix #622
10 years ago
Eryx
fb8beaf19a
Fix pagination() to get the right total number of pages
10 years ago
Unknwon
d78abd3561
Mirror fix on admin/orgs paging
10 years ago
Unknwon
1aa76bd279
Fix #532 , add system notice
10 years ago
Unknwon
7ba9257a7f
Add suburl support
10 years ago
Martin van Beurden
0055cbd365
Allow Gogs to run from a suburl behind a reverse proxy. e.g. http://mydomain.com/gogs/
...
Conflicts:
modules/setting/setting.go
Conflicts:
templates/repo/release/list.tmpl
templates/user/dashboard/dashboard.tmpl
Conflicts:
routers/repo/setting.go
10 years ago
Unknwon
9bc63bda7d
Finish all new admin pages.
10 years ago
Unknwon
d2aff9a46a
Continue working on new admin pages
10 years ago
Unknwon
8829174574
Finish new admin users pages
10 years ago
Unknwon
1aec1a2dda
Finish new admin dashboard
10 years ago
Unknwon
7bbf644dd5
Convert captcha, cache, csrf as middlewares
10 years ago
Unknwon
8dd07c0ddd
New UI merge in progress
10 years ago
gima
5a97cc69ed
Make possible for administrators to change user's password (fix proposal for #290 )
10 years ago
Unknown
0f907301b7
Fix #285
10 years ago
Unknown
63cc14062a
Paging function for users and repositories
10 years ago
Unknown
e0f9c628c5
Add create organization
10 years ago
Unknown
b2801a2e98
Fix #165
10 years ago
Unknown
9924e65ca1
In progress of name template name constant
10 years ago
Unknown
ad5ec45dd6
Fix #165
10 years ago
Unknown
f147ad619a
Basic process manager
10 years ago
Unknown
d952b4200c
Add corn rask monitor panel
10 years ago
Unknown
f160b4f33c
Add tar.gz download button and other mirror updates
10 years ago
Unknown
302c863cda
Fix #242
10 years ago
Unknown
ab13a29cb5
Fix #209
10 years ago
Unknown
688ec6ecbd
Fixed #209
10 years ago
Unknown
4744996f9a
Make gmail auth work
10 years ago
Lunny Xiao
f4486f3eec
bug fixed #193
10 years ago
Lunny Xiao
7869cfccb9
Merge pull request #192 from DerDackel/ldapssl
...
Add LDAP over SSL support
10 years ago
Sebastian Jackel
eb264a112b
Add LDAP over SSL support
10 years ago
Unknown
f1130ce5e9
Fix edit auth page bug
10 years ago
Unknown
0970d6cc38
Log to different adapter according to level
10 years ago
Unknown
2c73ced0db
Fix #173
10 years ago
Lunny Xiao
f68e279150
spell bug fixed
10 years ago
Unknown
c5dbc24ca4
UI fix
10 years ago
Lunny Xiao
bf58679390
add support for smtp authentication
10 years ago
Lunny Xiao
55019bfbc5
merge all login methods
10 years ago
Unknown
33d32585b1
Add mention, read/unread support of issue tracker
10 years ago
Unknown
7cb5a15c9b
Batch of mirror fixes
10 years ago
Unknown
6e3dba2cc5
Clean repo code
10 years ago
Unknown
3b7465f817
fix code
10 years ago
Lunny Xiao
d8136c9c3c
Merge branch 'dev-ldap' into dev
10 years ago
Lunny Xiao
1652dd5068
basic authentications
10 years ago
Lunny Xiao
79ea34e70e
ldap support
10 years ago
Unknown
e7d8fadb08
Add disable gravatar option
10 years ago
Unknown
100cd181bc
Add router log config option
10 years ago
Unknown
62d23e9154
HTTP no follow and offline mode
10 years ago
Unknown
d2b53dd43b
Add weibo oauth
10 years ago
Unknown
8980675a9f
Fix #69
10 years ago
Unknown
d0e6a4c25a
Change new martini impot path
10 years ago
Unknown
cb05b8325c
Update config option
10 years ago
Unknown
6bc7ae971a
Mirror fix
10 years ago
Unknown
97debac185
SSL enable config option
10 years ago
Unknown
7356153ba3
Batch updates
10 years ago
Unknown
fd1831052c
Update session
10 years ago
Unknown
0d1872ebe3
Add admin memStatus panel
10 years ago
Unknown
7a1ff8636c
Add config option: Picture cache path
10 years ago
Unknown
76cd448e79
Add admin delete user
10 years ago
Unknown
f219ddcf4e
Add log config panel in admin
10 years ago