X-Git-Url: https://dev.renevier.net/?p=syp.git;a=blobdiff_plain;f=inc%2Fdb%2Fanydb.php;h=596561cbc9027c15f89cbaf51aae9b1b000046b6;hp=8ccdf127a7194631a5cf3f5e207619d47818ea3b;hb=3c74920cb66b4e6c47c7e8a0eaeed40ffb7e8544;hpb=b6cae6a5698c5d0655d921f78f0ccab470bf034c diff --git a/inc/db/anydb.php b/inc/db/anydb.php index 8ccdf12..596561c 100644 --- a/inc/db/anydb.php +++ b/inc/db/anydb.php @@ -94,10 +94,12 @@ interface anydbConnection { public function create_items_table(); /* - * set password $pwd for user $usrname. If $usrname does not exist, create - * it. + * set password $pwd for user $usrname. + * If $usrname does not exist: + * - if $create_if_not_exists is true: create user. + * - if $create_if_not_exists is false: throws an err_query error. */ - public function setpwd($usrname, $pwd); + public function setpwd($usrname, $pwd, $create_if_not_exists); /* * check that $pwd_md5 is md5 for $username password.