User management form

This commit is contained in:
Aurélie Delhaie
2022-06-18 21:57:29 +02:00
parent 2a9fd72e14
commit 346babf3c7
20 changed files with 2791 additions and 8 deletions

View File

@@ -0,0 +1,29 @@
using PasswordGenerator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenSaveCloudClient.Core
{
public class PasswordTool
{
private PasswordTool() { }
public static bool CheckRequirements(string password)
{
if (password.Length < 6)
{
return false;
}
return true;
}
public static string GeneratePassword()
{
Password pwd = new(12);
return pwd.Next();
}
}
}