서버 DB 에러 핸들링 및 비밀번호 보안 속성 수정
This commit is contained in:
@@ -30,7 +30,7 @@ function db_connect(){
|
|||||||
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8mb4, sql_mode='NO_ENGINE_SUBSTITUTION'"
|
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8mb4, sql_mode='NO_ENGINE_SUBSTITUTION'"
|
||||||
]);
|
]);
|
||||||
} catch (PDOException $Exception) {
|
} catch (PDOException $Exception) {
|
||||||
die('Error:'.$Exception->getMessage());
|
throw new Exception('DB Connection Failed: ' . $Exception->getMessage());
|
||||||
}
|
}
|
||||||
return $pdo;
|
return $pdo;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -722,6 +722,7 @@
|
|||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
required={!editingMember}
|
required={!editingMember}
|
||||||
|
autoComplete="new-password"
|
||||||
value={formData.password}
|
value={formData.password}
|
||||||
onChange={(e) => setFormData({...formData, password: e.target.value})}
|
onChange={(e) => setFormData({...formData, password: e.target.value})}
|
||||||
className="w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:ring-2 focus:ring-blue-500 focus:bg-white transition-all"
|
className="w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:ring-2 focus:ring-blue-500 focus:bg-white transition-all"
|
||||||
@@ -1507,6 +1508,7 @@
|
|||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
required
|
required
|
||||||
|
autoComplete="current-password"
|
||||||
value={password}
|
value={password}
|
||||||
onChange={(e) => setPassword(e.target.value)}
|
onChange={(e) => setPassword(e.target.value)}
|
||||||
className="w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-blue-500 focus:bg-white outline-none transition-all font-medium"
|
className="w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-blue-500 focus:bg-white outline-none transition-all font-medium"
|
||||||
@@ -1883,6 +1885,7 @@
|
|||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
required={!editingMember}
|
required={!editingMember}
|
||||||
|
autoComplete="new-password"
|
||||||
value={formData.password}
|
value={formData.password}
|
||||||
onChange={(e) => setFormData({...formData, password: e.target.value})}
|
onChange={(e) => setFormData({...formData, password: e.target.value})}
|
||||||
className="w-full px-3 py-2 border border-slate-200 rounded-lg outline-none focus:ring-2 focus:ring-blue-500"
|
className="w-full px-3 py-2 border border-slate-200 rounded-lg outline-none focus:ring-2 focus:ring-blue-500"
|
||||||
|
|||||||
Reference in New Issue
Block a user