diff options
author | zeripath <art27@cantab.net> | 2019-08-16 22:56:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-16 22:56:57 +0100 |
commit | bee1227b2f64d33ecbb0c5972ffc1b7d9689f95f (patch) | |
tree | 557dd7a1e9bcac37b9c6e2e36ccc2a298076df1d /modules | |
parent | 867f46f78e5777d7bafe83cda3244c1001ce3e60 (diff) | |
download | gitea-bee1227b2f64d33ecbb0c5972ffc1b7d9689f95f.tar.gz gitea-bee1227b2f64d33ecbb0c5972ffc1b7d9689f95f.zip |
Extract the username and password from the mirror url (#7651)
* Explode out mirror username and password
* Update models/repo_mirror.go
* Just roundtrip the password
* remove unused declaration
* Update templates/repo/settings/options.tmpl
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/repo_form.go | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index 0333c3c926..cdac210dde 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -98,13 +98,15 @@ func (f MigrateRepoForm) ParseRemoteAddr(user *models.User) (string, error) { // RepoSettingForm form for changing repository settings type RepoSettingForm struct { - RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"` - Description string `binding:"MaxSize(255)"` - Website string `binding:"ValidUrl;MaxSize(255)"` - Interval string - MirrorAddress string - Private bool - EnablePrune bool + RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"` + Description string `binding:"MaxSize(255)"` + Website string `binding:"ValidUrl;MaxSize(255)"` + Interval string + MirrorAddress string + MirrorUsername string + MirrorPassword string + Private bool + EnablePrune bool // Advanced settings EnableWiki bool |