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 / Register
Toggle navigation
Open sidebar
Zvonimir
ISPConfig 3
Commits
f227fb72
Commit
f227fb72
authored
Aug 14, 2014
by
Marius Cramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support passwords in login that are crypted with crypt-SHA256
parent
1bcc716d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
interface/web/login/index.php
interface/web/login/index.php
+7
-0
No files found.
interface/web/login/index.php
View file @
f227fb72
...
...
@@ -197,6 +197,13 @@ class login_index {
//* The password is crypt-md5 encrypted
$salt
=
'$1$'
.
substr
(
$saved_password
,
3
,
8
)
.
'$'
;
if
(
crypt
(
stripslashes
(
$passwort
),
$salt
)
!=
$saved_password
)
{
$user
=
false
;
}
}
elseif
(
substr
(
$saved_password
,
0
,
3
)
==
'$5$'
)
{
//* The password is crypt-md5 encrypted
$salt
=
'$5$'
.
substr
(
$saved_password
,
3
,
16
)
.
'$'
;
if
(
crypt
(
stripslashes
(
$passwort
),
$salt
)
!=
$saved_password
)
{
$user
=
false
;
}
...
...
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