mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Improve comments
This commit is contained in:
parent
a25767432a
commit
0e8a27e7f7
1 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
register_module([
|
register_module([
|
||||||
"name" => "Login",
|
"name" => "Login",
|
||||||
"version" => "0.9.3",
|
"version" => "0.9.4",
|
||||||
"author" => "Starbeamrainbowlabs",
|
"author" => "Starbeamrainbowlabs",
|
||||||
"description" => "Adds a pair of actions (login and checklogin) that allow users to login. You need this one if you want your users to be able to login.",
|
"description" => "Adds a pair of actions (login and checklogin) that allow users to login. You need this one if you want your users to be able to login.",
|
||||||
"id" => "page-login",
|
"id" => "page-login",
|
||||||
|
@ -239,8 +239,7 @@ function hash_password_properties() {
|
||||||
* @package page-login
|
* @package page-login
|
||||||
* @param string $pass The password to hash.
|
* @param string $pass The password to hash.
|
||||||
*
|
*
|
||||||
* @return string The hashed password. Uses sha3 if $settings->use_sha3 is
|
* @return string The hashed password. Uses password_hash() under-the-hood, but with some additional extras to avoid known issues.
|
||||||
* enabled, or sha256 otherwise.
|
|
||||||
*/
|
*/
|
||||||
function hash_password($pass) {
|
function hash_password($pass) {
|
||||||
$props = hash_password_properties();
|
$props = hash_password_properties();
|
||||||
|
@ -278,7 +277,8 @@ function hash_password_update($pass, $hash) {
|
||||||
* automatically.
|
* automatically.
|
||||||
* Starts at 10 and works upwards in increments of 1. Goes on until a value is
|
* Starts at 10 and works upwards in increments of 1. Goes on until a value is
|
||||||
* found that's greater than the target - or 10x the target time elapses.
|
* found that's greater than the target - or 10x the target time elapses.
|
||||||
* @return integer The automatically calculated password hashing cost.
|
* @param bool $verbose Whether to output verbose progress information to the client or not.
|
||||||
|
* @return int The automatically calculated password hashing cost.
|
||||||
*/
|
*/
|
||||||
function hash_password_compute_cost($verbose = false) {
|
function hash_password_compute_cost($verbose = false) {
|
||||||
global $settings;
|
global $settings;
|
||||||
|
|
Loading…
Reference in a new issue