1
0
Fork 0
mirror of https://github.com/miawinter98/just-short-it.git synced 2024-12-04 20:49:53 +00:00
just-short-it/Service/AuthenticationService.cs

16 lines
413 B
C#
Raw Permalink Normal View History

2023-04-15 13:40:46 +00:00
using JustShortIt.Model;
namespace JustShortIt.Service;
public class AuthenticationService {
private User User { get; }
public AuthenticationService(User user) {
User = user;
}
public bool IsUser(string username, string password) {
return string.Equals(User.Username, username, StringComparison.CurrentCultureIgnoreCase) &&
User.Password == password;
}
}