forgejo/modules
Stefan Kalscheuer 0b177574c9 Only show SSH clone URL if signed in (#2169) (#2170)
* Add configuration flag SSH_EXPOSE_ANONYMOUS

If this flag (default True) is set to false, the SSH clone URL will only be exposed if the current user is signed in.

* Default SSH exposure set to false

To match GitHub and for security reasons, SSH URL exposure is disabled by default.
In addition to that. minor code changes have been applied.

Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>

* Add integration tests

* Hide clone button neither HTTP and SSH is enabled

Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
2017-07-15 22:21:51 +08:00
..
auth Check for valid renamed usernames (#2077) 2017-07-01 22:48:29 +03:00
avatar
base lint 2017-06-29 12:11:34 -04:00
context Only show SSH clone URL if signed in (#2169) (#2170) 2017-07-15 22:21:51 +08:00
cron LDAP user synchronization (#1478) 2017-05-10 15:10:18 +02:00
highlight No highlighting for .txt files (#1922) 2017-06-09 19:39:16 -05:00
httplib
indexer
lfs
log
mailer fix misspell (#1996) 2017-06-18 08:30:04 +08:00
markdown Fix SHA1 hash linking (#2143) 2017-07-12 04:26:54 +02:00
markup gofmt (#1710) 2017-05-12 16:09:53 +08:00
minwinsvc
notification
options
private Drop db operations from hook commands (#1514) 2017-05-04 13:42:02 +08:00
process
public
setting Only show SSH clone URL if signed in (#2169) (#2170) 2017-07-15 22:21:51 +08:00
ssh
sync Fix status table race condition (#1835) 2017-05-31 16:57:17 +08:00
templates
user
util refactor: remove workaround after the golang 1.7 release. (#1349) 2017-03-29 10:05:23 +08:00
validation