Titano: Library completion, remote editing, accessibility and RTL pass, remaining translations #3

Merged
Alby96 merged 117 commits from claude/keen-knuth-uhxv8w into main 2026-10-12 09:24:21 +02:00
Showing only changes of commit b0fedf2caf - Show all commits
+2
View File
@@ -119,6 +119,8 @@ public static class UserEndpoints
private static async Task<IResult> ResetPasswordAsync(HttpContext context, Caller caller, Guid id, ResetPasswordRequest? request, TitanoDatabase db, AuditLog audit)
{
var ct = context.RequestAborted;
// A reset ends every session of the account, the caller's too, before the temporary password could be read.
if (id == caller.Id) return ApiErrors.Conflict(context, "self");
if (await db.Users.GetAsync(id, ct) is not { } user) return ApiErrors.NotFound(context, "user");
var password = string.IsNullOrEmpty(request?.Password) ? TemporaryPassword.Generate() : request.Password;
if (!PasswordHasher.IsAcceptable(password)) return WeakPassword(context);