From 3f4c0720e1e3421431e7baa20882a4a4512a7fab Mon Sep 17 00:00:00 2001 From: ivar Date: Sun, 19 Oct 2025 23:41:23 +0200 Subject: Initial --- src/Services/Interfaces/IUserService.cs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/Services/Interfaces/IUserService.cs (limited to 'src/Services/Interfaces/IUserService.cs') diff --git a/src/Services/Interfaces/IUserService.cs b/src/Services/Interfaces/IUserService.cs new file mode 100644 index 0000000..f315c24 --- /dev/null +++ b/src/Services/Interfaces/IUserService.cs @@ -0,0 +1,28 @@ +using IOL.Fagprove.Data.Models; +using IOL.Fagprove.Data.DTOs; + +namespace IOL.Fagprove.Services.Interfaces +{ + public interface IUserService + { + /// + /// Sends welcome mail to the provided user. + /// + /// User to send mail to. + /// Boolean indicating if the mail was sent or not. + bool SetTemporaryPasswordAndSendWelcomeMail(User user); + /// + /// Creates and sets a new temporary password on a user. + /// + /// User to work on. + /// Returns the password or default if the task was unsuccesful. + bool SetNewTemporaryPasswordAndNotifyUser(User user); + /// + /// Updates the provided users password with the provided password. + /// + /// User to update. + /// Unhashed new password. + /// Boolean indicating if the new password was set and saved to the database. + bool UpdatePassword(User user, string password); + } +} \ No newline at end of file -- cgit v1.3