aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-27 19:42:06 +0800
committercrupest <crupest@outlook.com>2021-04-27 19:42:06 +0800
commitab0fb093ee0769ff67b3b71efdfcccd34bd8683a (patch)
tree916e5471e57a26702ca52b7e338041ad3c56c134 /BackEnd/Timeline
parente619eac394b4e1c7a3cb0c5902b2776314c7b979 (diff)
downloadtimeline-ab0fb093ee0769ff67b3b71efdfcccd34bd8683a.tar.gz
timeline-ab0fb093ee0769ff67b3b71efdfcccd34bd8683a.tar.bz2
timeline-ab0fb093ee0769ff67b3b71efdfcccd34bd8683a.zip
chore: Clean codes.
Diffstat (limited to 'BackEnd/Timeline')
-rw-r--r--BackEnd/Timeline/Controllers/UserAvatarController.cs1
-rw-r--r--BackEnd/Timeline/Services/BasicServicesServiceCollectionExtensions.cs4
-rw-r--r--BackEnd/Timeline/Services/User/PasswordService.cs2
-rw-r--r--BackEnd/Timeline/Services/User/UserServicesServiceCollectionExtensions.cs4
4 files changed, 2 insertions, 9 deletions
diff --git a/BackEnd/Timeline/Controllers/UserAvatarController.cs b/BackEnd/Timeline/Controllers/UserAvatarController.cs
index 5d4c70f3..7d455fc6 100644
--- a/BackEnd/Timeline/Controllers/UserAvatarController.cs
+++ b/BackEnd/Timeline/Controllers/UserAvatarController.cs
@@ -12,6 +12,7 @@ using Timeline.Models.Http;
using Timeline.Models.Validation;
using Timeline.Services.Imaging;
using Timeline.Services.User;
+using Timeline.Services.User.Avatar;
using static Timeline.Resources.Controllers.UserAvatarController;
namespace Timeline.Controllers
diff --git a/BackEnd/Timeline/Services/BasicServicesServiceCollectionExtensions.cs b/BackEnd/Timeline/Services/BasicServicesServiceCollectionExtensions.cs
index e9221fef..d64f5c99 100644
--- a/BackEnd/Timeline/Services/BasicServicesServiceCollectionExtensions.cs
+++ b/BackEnd/Timeline/Services/BasicServicesServiceCollectionExtensions.cs
@@ -1,9 +1,5 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
namespace Timeline.Services
{
diff --git a/BackEnd/Timeline/Services/User/PasswordService.cs b/BackEnd/Timeline/Services/User/PasswordService.cs
index 5c2062dd..fc097492 100644
--- a/BackEnd/Timeline/Services/User/PasswordService.cs
+++ b/BackEnd/Timeline/Services/User/PasswordService.cs
@@ -18,7 +18,7 @@ namespace Timeline.Services.User
public HashedPasswordBadFromatException(string message) : base(message) { }
public HashedPasswordBadFromatException(string message, Exception inner) : base(message, inner) { }
- public HashedPasswordBadFromatException(string hashedPassword, string reason, Exception? inner = null)
+ public HashedPasswordBadFromatException(string hashedPassword, string reason, Exception? inner = null)
: base(string.Format(CultureInfo.CurrentCulture, Resource.ExceptionHashedPasswordBadFormat, reason), inner) { HashedPassword = hashedPassword; }
protected HashedPasswordBadFromatException(
System.Runtime.Serialization.SerializationInfo info,
diff --git a/BackEnd/Timeline/Services/User/UserServicesServiceCollectionExtensions.cs b/BackEnd/Timeline/Services/User/UserServicesServiceCollectionExtensions.cs
index 6320b608..a5a743df 100644
--- a/BackEnd/Timeline/Services/User/UserServicesServiceCollectionExtensions.cs
+++ b/BackEnd/Timeline/Services/User/UserServicesServiceCollectionExtensions.cs
@@ -1,9 +1,5 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
using Timeline.Services.User.Avatar;
namespace Timeline.Services.User