mirror of
https://github.com/YunoHost-Apps/piwigo_ynh.git
synced 2024-09-03 20:06:03 +02:00
Update config.inc.php
This commit is contained in:
parent
600e210b4e
commit
02ec3a5e1f
1 changed files with 10 additions and 10 deletions
|
@ -548,29 +548,29 @@ $conf['external_authentification'] = true;
|
||||||
// user_fields : mapping between generic field names and table specific
|
// user_fields : mapping between generic field names and table specific
|
||||||
// field names. For example, in PWG, the mail address is names
|
// field names. For example, in PWG, the mail address is names
|
||||||
// "mail_address" and in punbb, it's called "email".
|
// "mail_address" and in punbb, it's called "email".
|
||||||
$conf['user_fields'] = array(
|
//$conf['user_fields'] = array(
|
||||||
'id' => 'id',
|
// 'id' => 'id',
|
||||||
'username' => 'username',
|
// 'username' => 'username',
|
||||||
'password' => 'password',
|
// 'password' => 'password',
|
||||||
'email' => 'mail_address'
|
// 'email' => 'mail_address'
|
||||||
);
|
// );
|
||||||
|
|
||||||
// password_hash: function hash the clear user password to store it in the
|
// password_hash: function hash the clear user password to store it in the
|
||||||
// database. The function takes only one parameter: the clear password.
|
// database. The function takes only one parameter: the clear password.
|
||||||
$conf['password_hash'] = 'pwg_password_hash';
|
//$conf['password_hash'] = 'pwg_password_hash';
|
||||||
|
|
||||||
// password_verify: function that checks the password against its hash. The
|
// password_verify: function that checks the password against its hash. The
|
||||||
// function takes 2 mandatory parameter : clear password, hashed password +
|
// function takes 2 mandatory parameter : clear password, hashed password +
|
||||||
// an optional parameter user_id. The user_id is used to update the password
|
// an optional parameter user_id. The user_id is used to update the password
|
||||||
// with the new hash introduced in Piwigo 2.5. See function
|
// with the new hash introduced in Piwigo 2.5. See function
|
||||||
// pwg_password_verify in include/functions_user.inc.php
|
// pwg_password_verify in include/functions_user.inc.php
|
||||||
$conf['password_verify'] = 'pwg_password_verify';
|
//$conf['password_verify'] = 'pwg_password_verify';
|
||||||
|
|
||||||
// guest_id : id of the anonymous user
|
// guest_id : id of the anonymous user
|
||||||
$conf['guest_id'] = 2;
|
//$conf['guest_id'] = 2;
|
||||||
|
|
||||||
// default_user_id : id of user used for default value
|
// default_user_id : id of user used for default value
|
||||||
$conf['default_user_id'] = $conf['guest_id'];
|
//$conf['default_user_id'] = $conf['guest_id'];
|
||||||
|
|
||||||
// Registering process and guest/generic members get language from the browser
|
// Registering process and guest/generic members get language from the browser
|
||||||
// if language isn't available PHPWG_DEFAULT_LANGUAGE is used as previously
|
// if language isn't available PHPWG_DEFAULT_LANGUAGE is used as previously
|
||||||
|
|
Loading…
Add table
Reference in a new issue