summaryrefslogtreecommitdiffstats
path: root/modules/auth
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-09 11:24:56 -0500
committerUnknwon <u@gogs.io>2015-12-09 11:24:56 -0500
commitb8d48bdb62a95da2752cddf325abcd9cf1f9909d (patch)
treec182a080ee72507c8fcb4f274641b37799fc4fdf /modules/auth
parent15d62bba82b97a626ac2d6c55cc16537b47a9321 (diff)
downloadgitea-b8d48bdb62a95da2752cddf325abcd9cf1f9909d.tar.gz
gitea-b8d48bdb62a95da2752cddf325abcd9cf1f9909d.zip
#2037 Add "New Mirror" button on Dashboard
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/repo_form.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index 90115d80f2..0d70117303 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -69,9 +69,6 @@ func (f MigrateRepoForm) ParseRemoteAddr(user *models.User) (string, error) {
}
if len(f.AuthUsername)+len(f.AuthPassword) > 0 {
u.User = url.UserPassword(f.AuthUsername, f.AuthPassword)
- } else {
- // Fake user name and password to prevent prompt and fail quick.
- u.User = url.UserPassword("fake_user", "")
}
remoteAddr = u.String()
} else if !user.CanImportLocal() {