From cb2b2c465bf7e9a03b0fc940924b5a28db939d92 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Mon, 9 Jun 2025 11:27:22 +0200 Subject: [PATCH] Added minimum password length to 6 characters. #1373 --- CHANGELOG.md | 1 + app/views/settings/users/index.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4ec315f..18e1b7f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Fixed - Fixed a bug where points from Immich and Photoprism did not have lonlat attribute set. #1318 +- Added minimum password length to 6 characters. #1373 ## Changed diff --git a/app/views/settings/users/index.html.erb b/app/views/settings/users/index.html.erb index a04c25f6..90cb21e8 100644 --- a/app/views/settings/users/index.html.erb +++ b/app/views/settings/users/index.html.erb @@ -47,11 +47,11 @@ <% end %> <%= f.email_field :email, value: '', class: "input input-bordered" %> -
+
<%= f.label :password do %> Password <% end %> - <%= f.password_field :password, autofocus: true, autocomplete: "new-password", class: "input input-bordered" %> + <%= f.password_field :password, autofocus: true, autocomplete: "new-password", class: "input input-bordered", minlength: 6 %>
<%= f.submit "Create", class: "btn btn-primary" %>