Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Antoine
ae2
Commits
b1dc1e17
Commit
b1dc1e17
authored
Mar 25, 2014
by
Bate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change hash algorithm from bcrypt to SHA-512
parent
fcc20677
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/entities/utilisateur.inc.php
include/entities/utilisateur.inc.php
+3
-3
No files found.
include/entities/utilisateur.inc.php
View file @
b1dc1e17
...
...
@@ -551,7 +551,7 @@ class utilisateur extends stdentity
array
(
"id_utilisateur"
=>
$this
->
id
));
}
}
$this
->
hash
=
crypt
(
genere_pass
(
20
),
uniqid
(
'$
2y$07
$'
,
true
));
$this
->
hash
=
crypt
(
genere_pass
(
20
),
uniqid
(
'$
6$rounds=10000
$'
,
true
));
$this
->
tovalid
=
$reason
;
$req
=
new
update
(
$this
->
dbrw
,
"utilisateurs"
,
...
...
@@ -574,7 +574,7 @@ class utilisateur extends stdentity
*/
function
change_password
(
$new_password
)
{
$this
->
pass
=
crypt
(
$new_password
,
uniqid
(
'$
2y$07
$'
,
true
));
$this
->
pass
=
crypt
(
$new_password
,
uniqid
(
'$
6$rounds=10000
$'
,
true
));
$req
=
new
update
(
$this
->
dbrw
,
"utilisateurs"
,
array
(
"pass_utl"
=>
$this
->
pass
),
...
...
@@ -1200,7 +1200,7 @@ class utilisateur extends stdentity
$alias
.
=
1
;
}
$this
->
alias
=
$alias
;
$this
->
pass
=
crypt
(
$password
,
uniqid
(
'$
2y$07
$'
,
true
));
$this
->
pass
=
crypt
(
$password
,
uniqid
(
'$
6$rounds=10000
$'
,
true
));
$this
->
sexe
=
$sexe
;
$this
->
date_naissance
=
$date_naissance
;
$this
->
droit_image
=
$droit_image
;
...
...
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