added a validation class
This commit is contained in:
parent
8fe00e3aca
commit
0e8203eadd
@ -7,7 +7,7 @@ public class AppController
|
|||||||
public static void NewLoginSave(string username, string password, string email)
|
public static void NewLoginSave(string username, string password, string email)
|
||||||
{
|
{
|
||||||
string hashedPassword = ShaHash.HashPassword(password);
|
string hashedPassword = ShaHash.HashPassword(password);
|
||||||
var user = new Model.NewUser(username, hashedPassword, email);
|
var user = new NewUser(username, hashedPassword, email);
|
||||||
SQLite.SaveUser(user);
|
SQLite.SaveUser(user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
6
Project.Model/Validation.cs
Normal file
6
Project.Model/Validation.cs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
namespace Project.Model;
|
||||||
|
|
||||||
|
public class Validation
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user