diff --git a/ProfilePage.xaml.cs b/ProfilePage.xaml.cs index 734afa7..6bc2f97 100644 --- a/ProfilePage.xaml.cs +++ b/ProfilePage.xaml.cs @@ -23,6 +23,9 @@ public partial class ProfilePage : ContentPage App.GlobalData.LogNo = false; await TcpServer.tcpClient.CloseAsync(""); + string sql = "UPDATE Users SET LogNo = 0 WHERE User='" + App.GlobalData.User + "';"; + AppModels.Updata(sql); + var logpage = new View.LogPage(); await Navigation.PushModalAsync(logpage); }