mirror of
				https://github.com/miawinter98/just-short-it.git
				synced 2025-10-31 16:15:28 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			413 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			413 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| 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;
 | |
|     }
 | |
| } |