First code release to public
This commit is contained in:
+4
-2
@@ -12,6 +12,7 @@
|
||||
* # Date Changes by
|
||||
* ------ ------------ ---------------------------------------------- -----
|
||||
* 0.1.0 2024-03-12 Started development tho
|
||||
' 0.2.0 2026-08-18 First public release tho
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -47,7 +48,7 @@ define('ROLE_SAILOR', 'sailor');
|
||||
// ========== PAGE START CODE =================================================
|
||||
|
||||
// global version string
|
||||
$g_version = 'v0.1.1';
|
||||
$g_version = 'v0.2.0';
|
||||
|
||||
$g_scriptname = basename($_SERVER['SCRIPT_NAME']);
|
||||
|
||||
@@ -88,6 +89,7 @@ try {
|
||||
break;
|
||||
case 1044:
|
||||
case 1045:
|
||||
case 1698:
|
||||
// access denied to db or generic access denied
|
||||
echo "Unable to connect to database, perhaps username or password is wrong.\n";
|
||||
break;
|
||||
@@ -274,7 +276,7 @@ class User {
|
||||
$row = $sth->fetch(PDO::FETCH_OBJ);
|
||||
$this->role = $row->role;
|
||||
$this->flags = array_filter(explode(',', $row->flags));
|
||||
if ($row->flags != 0 ) {
|
||||
if (($row->flags != 0) and ($row->flags != '')) {
|
||||
// deleted or locked, intentionally not return detailed reason
|
||||
$this->errormessage = _('User account does not exist');
|
||||
} elseif (password_verify($user_pass, $row->pass)) {
|
||||
|
||||
Reference in New Issue
Block a user