setting: fixed an issue where multiple configuration items were not applied.
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
This commit is contained in:
@@ -202,7 +202,7 @@ async function handleUserSettingsSubmit(event) {
|
||||
|
||||
try {
|
||||
const response = await api.updateUserSettings(newUsername, newPassword);
|
||||
if (response && response.status === 'user_credentials_updated') {
|
||||
if (response && (response.status === 'ok' || response.auth_status === 'updated')) {
|
||||
alert('Username and password updated successfully. Please log in again with new credentials.');
|
||||
handleLogout(); // Force logout to re-authenticate with new credentials
|
||||
} else {
|
||||
|
||||
@@ -184,7 +184,7 @@ export async function connectToWifi() {
|
||||
|
||||
try {
|
||||
const result = await api.postWifiConnect(ssid, password);
|
||||
if (result.status === 'connection_initiated') {
|
||||
if (result.status === 'ok' || result.wifi_status === 'connecting') {
|
||||
wifiModal.hide();
|
||||
setTimeout(() => {
|
||||
alert(`Connection to "${ssid}" initiated. The device will try to reconnect. Please check the Wi-Fi status icon.`);
|
||||
|
||||
Reference in New Issue
Block a user