Admin edit clean up
This commit is contained in:
@@ -34,13 +34,8 @@ namespace Casino
|
||||
}
|
||||
}
|
||||
|
||||
// ==========================================
|
||||
// SPEICHERN
|
||||
// ==========================================
|
||||
|
||||
private void BtnSpeichern_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
// Name prüfen
|
||||
if (string.IsNullOrWhiteSpace(TxtName.Text))
|
||||
{
|
||||
MessageBox.Show(
|
||||
@@ -78,7 +73,6 @@ namespace Casino
|
||||
return;
|
||||
}
|
||||
|
||||
// Rolle prüfen
|
||||
if (CmbRolle.SelectedItem is not ComboBoxItem selectedRoleItem)
|
||||
{
|
||||
MessageBox.Show(
|
||||
@@ -130,19 +124,11 @@ namespace Casino
|
||||
}
|
||||
}
|
||||
|
||||
// ==========================================
|
||||
// ABBRECHEN
|
||||
// ==========================================
|
||||
|
||||
private void BtnAbbrechen_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
// ==========================================
|
||||
// PASSWORT HASHEN
|
||||
// ==========================================
|
||||
|
||||
private static string HashPassword(string password)
|
||||
{
|
||||
using SHA256 sha256 = SHA256.Create();
|
||||
|
||||
Reference in New Issue
Block a user