Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
authserv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ai
authserv
Commits
f375ec4d
Commit
f375ec4d
authored
11 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
fix typo
parent
abdb6584
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
authserv/ldap_model.py
+3
-2
3 additions, 2 deletions
authserv/ldap_model.py
with
3 additions
and
2 deletions
authserv/ldap_model.py
+
3
−
2
View file @
f375ec4d
...
...
@@ -77,12 +77,13 @@ class User(model.User):
self
.
_otp_enabled
=
True
self
.
_totp_secret
=
values
[
0
]
elif
key
==
'
appSpecificPassword
'
:
self
.
asps
=
[
v
.
split
(
'
:
'
,
2
)
for
v
in
values
]
self
.
_
asps
=
[
v
.
split
(
'
:
'
,
2
)
for
v
in
values
]
def
otp_enabled
(
self
):
return
self
.
_otp_enabled
app_specific_passwords_enabled
=
otp_enabled
def
app_specific_passwords_enabled
(
self
):
return
bool
(
self
.
_asps
)
def
get_name
(
self
):
return
self
.
_username
...
...
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