Skip to content
This repository was archived by the owner on Dec 29, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace FunDraw
{
public class AppConfig
{
public static string APP_API_HOST = "https://fundraw.lt.id.vn";
public static string APP_API_HOST = "http://localhost:3000";
public static string WS_API_HOST = "ws://localhost:3000/game";
}
}
95 changes: 25 additions & 70 deletions ChangePassword.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions ChangePassword.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ public ChangePassword()

private async void btSend_Click(object sender, EventArgs e)
{
string old_pass = tbOldPass.Text;
string new_pass = tbNewPass.Text;
string confirm = tbConfirm.Text;

if (string.IsNullOrWhiteSpace(old_pass)|| string.IsNullOrWhiteSpace(new_pass)|| string.IsNullOrWhiteSpace(confirm))
if (string.IsNullOrWhiteSpace(new_pass)|| string.IsNullOrWhiteSpace(confirm))
{
MessageBox.Show("Please enter all required fields.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
Expand All @@ -33,14 +32,13 @@ private async void btSend_Click(object sender, EventArgs e)
{
MessageBox.Show("The passwords do not match. Please try again.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
if(new_pass==old_pass)
{
MessageBox.Show("Please use a different password from your old one.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
if(await Session.ChangePassword(new_pass))

if (await Session.ChangePassword(new_pass))
{
MessageBox.Show("Changed password successfully!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
MessageBox.Show("Changed password successfully! Please start the app again.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
Application.Exit();
}

else MessageBox.Show($"An error has occurred. Please try again.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
Expand Down
122 changes: 122 additions & 0 deletions Components/PlayerCard.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading