Lunny Xiao
f5fa22a499
Fix prohibit login check on authorization ( #6106 )
...
* fix bug prohibit login not applied on dashboard
* fix tests
* fix bug user status leak
* fix typo
* return after render
6 years ago
xdch47
5e7dee0db5
modules/context/auth.go: fix redirect loop ( #5965 )
...
Closes #5815
6 years ago
Lanre Adelowo
126ba796dc
Force user to change password ( #4489 )
...
* redirect to login page after successfully activating account
* force users to change password if account was created by an admin
* force users to change password if account was created by an admin
* fixed build
* fixed build
* fix pending issues with translation and wrong routes
* make sure path check is safe
* remove unneccessary newline
* make sure users that don't have to view the form get redirected
* move route to use /settings prefix so as to make sure unauthenticated users can't view the page
* update as per @lafriks review
* add necessary comment
* remove unrelated changes
* support redirecting to location the user actually want to go to before being forced to change his/her password
* run make fmt
* added tests
* improve assertions
* add assertion
* fix copyright year
Signed-off-by: Lanre Adelowo <yo@lanre.wtf>
6 years ago
David Schneiderbauer
adba2ad609
fix not respecting landing page setting ( #4209 )
...
* fix not respecting landing page setting
* fmt
* add landing page test
7 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
faabc76fd6
Golint fixed for modules/context
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
Matthias Loibl
1f44b01e2a
Fix imports found by goimports.
8 years ago
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs ( #37 )
8 years ago
Unknwon
ec332cf903
Minor naming improvement
8 years ago
Unknwon
c083d76567
#2937 able to prohibit user login
9 years ago
Unknwon
dd6faf7f9b
Convert all API handers to use *context.APIContext
9 years ago
Unknwon
514382e2eb
Rename module: middleware -> context
9 years ago
Unknwon
f6759a731a
#2748 fix redirect loop with auto-signin
9 years ago
Unknwon
f946040fa9
#1891 attempt to fix expected invalid CSRF token
...
- Remove unused config settings `[picture] service`
9 years ago
Unknwon
120cd4e471
#1984 Better mirror repo management
9 years ago
Unknwon
56dd430a10
refactor API routes and some work for #976
9 years ago
Unknwon
7f9598141b
fix #2020
9 years ago
Unknwon
ee686f6231
minor fix on auto sign in
9 years ago
Unknwon
9330c943cd
work on #1891
9 years ago
Unknwon
932dbccb67
fix import path, fix #1782
9 years ago
Unknwon
aff49b1c9e
unified API error response
9 years ago
Unknwon
8e0a69f86a
#697 disable captcha and new admin create user UI
9 years ago
Unknwon
384fbeca80
#1474 logic fix
9 years ago
Unknwon
47ac579f09
only assign auto-admin when sign up by web
10 years ago
Unknwon
817b48ed1e
Show owner/poster tags of comments and fix #1312
10 years ago
Unknwon
ff051e2106
#1128 : API calls are not hidden behind sign in
10 years ago
Unknwon
4cbbaefd82
#1127 : hide user e-mail when API caller isn't signed in
10 years ago
Unknwon
2b1e67e085
#1127 : hide user e-mail when API caller isn't signed in
10 years ago
Christophe Le Guern
d61962a18a
Add setting.AppSubUrl for LANDING_PAGE = explore
...
Add setting.AppSubUrl in case of different ROOT_URL and LANDING_PAGE = explore
10 years ago
Unknwon
28580aee63
modules/middleware/auth.go: remove uncheck login for watch a repo #929
10 years ago
Unknwon
fb9dcfa921
modules/midlleware: little auth code fix, #777
10 years ago
Unknwon
d8394bb2e0
modules/midlleware: little auth code fix
10 years ago
Unknwon
54d25c13d7
Fix #543
10 years ago
Unknwon
37d8d3afe9
more APIs on #12
10 years ago
Unknwon
9dc3c93a6a
#12 , add/edit hook
10 years ago
Martin van Beurden
976f1486e0
Set cookiepath to AppSubUrl
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
8b0e815d98
Fix #425
10 years ago
Unknwon
5fbf8531e6
Finish new home page of organization
11 years ago
Unknwon
7af7584d25
Finish new reset password, etc.
11 years ago
Unknwon
7bbf644dd5
Convert captcha, cache, csrf as middlewares
11 years ago
Unknwon
8dd07c0ddd
New UI merge in progress
11 years ago
Unknown
688ec6ecbd
Fixed #209
11 years ago
Unknown
8ca14e2109
Improve delete SSH key
11 years ago
Unknown
c1eb4d894a
Clean api code
11 years ago
Unknown
aa58320a1b
Add 2 more gitignore
11 years ago
zhsso
a4cbe79567
fix
11 years ago
zhsso
f3ed11d177
mistakes
11 years ago