Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Julien Ledoux
lemonldap-ng
Commits
6d68bb72
Commit
6d68bb72
authored
Oct 02, 2018
by
Yadd
Browse files
Little warning
parent
68fc79c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_DBI.pm
View file @
6d68bb72
...
...
@@ -189,7 +189,7 @@ sub get_salt {
my
$dbsalt
;
# get rid of scheme ({sha256})
$dbhash
=~
s/^\{[^}]+\}(.*)$/
\
1/
;
$dbhash
=~
s/^\{[^}]+\}(.*)$/
$
1/
;
# get binary hash
my
$decoded
=
&decode_base64
(
$dbhash
);
...
...
@@ -253,7 +253,7 @@ sub dynamic_hash_password {
# Get the scheme
$dbscheme
=
$dbhash
;
$dbscheme
=~
s/^\{([^}]+)\}.*/
\
1/
;
$dbscheme
=~
s/^\{([^}]+)\}.*/
$
1/
;
$dbscheme
=
""
if
$dbscheme
eq
$dbhash
;
# no hash scheme => assume clear text
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment