Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LemonLDAP NG
lemonldap-ng
Commits
9c541b5a
Commit
9c541b5a
authored
Nov 03, 2017
by
dcoutadeur dcoutadeur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perltidy for
#1245
tests
parent
8786c6ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
lemonldap-ng-portal/t/20-Auth-and-password-DBI-dynamic-hash.t
...nldap-ng-portal/t/20-Auth-and-password-DBI-dynamic-hash.t
+6
-8
No files found.
lemonldap-ng-portal/t/20-Auth-and-password-DBI-dynamic-hash.t
View file @
9c541b5a
...
...
@@ -170,7 +170,8 @@ SKIP: {
$res
=
$client
->
_post
(
'
/
',
IO::
String
->
new
(
'
oldpassword=secret3&newpassword=secret4&confirmpassword=secret4
'),
'
oldpassword=secret3&newpassword=secret4&confirmpassword=secret4
'
),
cookie
=>
"
lemonldap=
$id
",
accept
=>
'
application/json
',
length
=>
63
...
...
@@ -183,8 +184,7 @@ SKIP: {
# Try to authenticate against new salted password
ok
(
$res
=
$client
->
_post
(
'
/
',
IO::
String
->
new
('
user=jsmith&password=secret4
'),
'
/
',
IO::
String
->
new
('
user=jsmith&password=secret4
'),
length
=>
28
),
'
Authentication against newly-modified password
'
...
...
@@ -192,14 +192,12 @@ SKIP: {
expectOK
(
$res
);
my
$id
=
expectCookie
(
$res
);
# Verify that password is hashed with correct scheme (dbiDynamicHashNewPasswordScheme)
# Verify that password is hashed with correct scheme (dbiDynamicHashNewPasswordScheme)
my
$sth
=
$dbh
->
prepare
("
SELECT password FROM users WHERE user='jsmith';
");
$sth
->
execute
();
my
$row
=
$sth
->
fetchrow_array
;
ok
(
$row
=~
/^{ssha256}/
,
'
Verify that password is hashed with correct scheme
'
);
ok
(
$row
=~
/^{ssha256}/
,
'
Verify that password is hashed with correct scheme
'
);
clean_sessions
();
}
...
...
Write
Preview
Markdown
is supported
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