From 5422296b9f9b330a5c12a96776745a8090851dc0 Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 12 Apr 2023 10:23:01 -0400 Subject: [PATCH] Check password needs to be done also without a login And fix spelling mistake --- app/controllers/people_controller.rb | 1 + app/javascript/login/new_password.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index b8d415cc2..b2bc04106 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -4,6 +4,7 @@ class PeopleController < ResourceController POLICY_SCOPE_CLASS = 'PersonPolicy::Scope'.freeze DEFAULT_SORTBY = 'name_sort_by' + skip_before_action :authenticate_person!, only: [:check_password] # need to add includes etc to speed up query def me diff --git a/app/javascript/login/new_password.vue b/app/javascript/login/new_password.vue index dfdcdcd26..7658673a7 100644 --- a/app/javascript/login/new_password.vue +++ b/app/javascript/login/new_password.vue @@ -11,7 +11,7 @@ Password must not be a commonly used password of easily guessable. Planorama makes use of the service haveibeenpwned.com - which is provided under the creatice commons (CC) license. + which is provided under the creative commons (CC) license.