Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Commits
0157c851
Commit
0157c851
authored
9 years ago
by
sveseli
Browse files
Options
Downloads
Patches
Plain Diff
modified condition under which user is asked for password/username
parent
36f6514a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/python/dm/common/client/sessionManager.py
+2
-2
2 additions, 2 deletions
src/python/dm/common/client/sessionManager.py
with
2 additions
and
2 deletions
src/python/dm/common/client/sessionManager.py
+
2
−
2
View file @
0157c851
...
@@ -68,7 +68,7 @@ class SessionManager:
...
@@ -68,7 +68,7 @@ class SessionManager:
self
.
logger
.
debug
(
'
User %s session cookie: %s
'
%
(
username
,
self
.
sessionCookie
))
self
.
logger
.
debug
(
'
User %s session cookie: %s
'
%
(
username
,
self
.
sessionCookie
))
def
getUsername
(
self
,
username
):
def
getUsername
(
self
,
username
):
if
not
len
(
username
)
and
self
.
requireSessionCredentials
:
if
username
is
None
and
self
.
requireSessionCredentials
:
return
self
.
askForUsername
()
return
self
.
askForUsername
()
return
username
return
username
...
@@ -81,7 +81,7 @@ class SessionManager:
...
@@ -81,7 +81,7 @@ class SessionManager:
return
username
return
username
def
getPassword
(
self
,
password
):
def
getPassword
(
self
,
password
):
if
not
len
(
password
)
and
self
.
requireSessionCredentials
:
if
password
is
None
and
self
.
requireSessionCredentials
:
return
self
.
askForPassword
()
return
self
.
askForPassword
()
return
password
return
password
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment