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
fusiondirectory
argonaut
Commits
6778aab7
Commit
6778aab7
authored
Aug 13, 2015
by
Côme Bernigaud
Committed by
Benoit Mortier
Aug 13, 2015
Browse files
Fixes
#943
Fixing hash check
parent
3748677d
Changes
1
Hide whitespace changes
Inline
Side-by-side
argonaut-common/Argonaut/Libraries/Common.pm
View file @
6778aab7
...
...
@@ -885,9 +885,7 @@ sub argonaut_gen_ssha_token {
sub
argonaut_check_ssha_token
{
my
(
$hash
,
$token
)
=
@_
;
$hash
=
decode_base64
(
substr
(
$hash
,
6
));
my
$salt
=
substr
(
$hash
,
20
);
$hash
=
substr
(
$hash
,
0
,
20
);
my
$salt
=
substr
(
decode_base64
(
substr
(
$hash
,
6
)),
20
);
if
(
$hash
eq
argonaut_gen_ssha_token
(
$token
,
$salt
))
{
return
1
;
...
...
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