Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
otphp
Commits
68c70d3b
Unverified
Commit
68c70d3b
authored
6 years ago
by
Florent Morselli
Committed by
GitHub
6 years ago
Browse files
Options
Download
Patches
Plain Diff
Revert #107 (#127)
This PR reverts the changes from #107. It should solve #126 / #125
parent
14388311
9.0.x
v9.1.4
v9.1.3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OTP.php
+7
-1
src/OTP.php
with
7 additions
and
1 deletion
+7
-1
src/OTP.php
+
7
−
1
View file @
68c70d3b
...
...
@@ -124,7 +124,13 @@ abstract class OTP implements OTPInterface
*/
private
function
intToByteString
(
int
$int
):
string
{
return
pack
(
'J'
,
$int
);
$result
=
[];
while
(
0
!==
$int
)
{
$result
[]
=
chr
(
$int
&
0xFF
);
$int
>>=
8
;
}
return
str_pad
(
implode
(
array_reverse
(
$result
)),
8
,
"
\000
"
,
STR_PAD_LEFT
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets