diff --git a/back/src/Kyoo.Authentication/Views/AuthApi.cs b/back/src/Kyoo.Authentication/Views/AuthApi.cs index 9222066d0..a0c766634 100644 --- a/back/src/Kyoo.Authentication/Views/AuthApi.cs +++ b/back/src/Kyoo.Authentication/Views/AuthApi.cs @@ -203,11 +203,14 @@ public async Task> ResetPassword([FromBody] PasswordResetRequ User user = await _users.Get(User.GetIdOrThrow()); if (!BCryptNet.Verify(request.OldPassword, user.Password)) return Forbid(new RequestError("The old password is invalid.")); - return await _users.Patch(user.Id, (user) => - { - user.Password = BCryptNet.HashPassword(request.NewPassword); - return user; - }); + return await _users.Patch( + user.Id, + (user) => + { + user.Password = BCryptNet.HashPassword(request.NewPassword); + return user; + } + ); } /// @@ -288,7 +291,9 @@ public async Task> PatchMe([FromBody] Patch patch) if (patch.Id.HasValue && patch.Id != userId) throw new ArgumentException("Can't edit your user id."); if (patch.ContainsKey(nameof(Abstractions.Models.User.Password))) - throw new ArgumentException("Can't edit your password via a PATCH. Use /auth/password-reset"); + throw new ArgumentException( + "Can't edit your password via a PATCH. Use /auth/password-reset" + ); return await _users.Patch(userId, patch.Apply); } catch (ItemNotFoundException) diff --git a/front/packages/primitives/src/icons.tsx b/front/packages/primitives/src/icons.tsx index aab3bedc5..a8cd87915 100644 --- a/front/packages/primitives/src/icons.tsx +++ b/front/packages/primitives/src/icons.tsx @@ -33,7 +33,7 @@ declare module "react" { ): (props: P & React.RefAttributes) => React.ReactElement | null; } -export type Icon =ComponentType; +export type Icon = ComponentType; type IconProps = { icon: Icon;