Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Drozdov <idrozdov@gitlab.com>2019-04-11 18:26:16 +0300
committerIgor Drozdov <idrozdov@gitlab.com>2019-05-29 14:03:50 +0300
commit3d4821a8e76d49b388b218824714d3bcb8c54dbf (patch)
treeeca97cf51cb76b05fb335ac8f1b172f44965751e /lib/gitlab/url_sanitizer.rb
parentaa8e75916ad8cf3f8481bc740519676205dd0082 (diff)
Hide password on import by url form
Diffstat (limited to 'lib/gitlab/url_sanitizer.rb')
-rw-r--r--lib/gitlab/url_sanitizer.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/url_sanitizer.rb b/lib/gitlab/url_sanitizer.rb
index 880712de5fe..215454fe63c 100644
--- a/lib/gitlab/url_sanitizer.rb
+++ b/lib/gitlab/url_sanitizer.rb
@@ -47,6 +47,10 @@ module Gitlab
@credentials ||= { user: @url.user.presence, password: @url.password.presence }
end
+ def user
+ credentials[:user]
+ end
+
def full_url
@full_url ||= generate_full_url.to_s
end