Login Fix
This commit is contained in:
@@ -107,12 +107,12 @@ namespace Casino
|
|||||||
private void StartNewGame()
|
private void StartNewGame()
|
||||||
{
|
{
|
||||||
|
|
||||||
var currentUser = users[MainWindow.currentUser];
|
decimal currentgeld = users[MainWindow.currentUser].Geld;
|
||||||
|
|
||||||
|
|
||||||
// 1. Einsatz sofort auf dem Konto abziehen & in der Datenbank speichern
|
// 1. Einsatz sofort auf dem Konto abziehen & in der Datenbank speichern
|
||||||
currentUser.Geld -= Convert.ToInt32(currentBet);
|
currentgeld -= Convert.ToInt32(currentBet);
|
||||||
db.UpdateGeld(currentUser.ID, currentUser.Geld);
|
db.UpdateGeld(users[MainWindow.currentUser].ID, currentgeld);
|
||||||
UpdateAccountDisplay();
|
UpdateAccountDisplay();
|
||||||
|
|
||||||
currentProfit = 0;
|
currentProfit = 0;
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ namespace Casino
|
|||||||
public Login()
|
public Login()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
Console.WriteLine(HashPassword("Mast"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user