Skip to content

Commit ffa8cdc

Browse files
committed
Fix User Password Check now that we have attribute tags
1 parent 8f39603 commit ffa8cdc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/Http/Controllers/HomeController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function entry_password_check(Request $request): Collection
236236
$password = $o->getObject('userpassword');
237237

238238
$result = collect();
239-
foreach ($password as $key => $value) {
239+
foreach ($password->values->dot() as $key => $value) {
240240
$hash = $password->hash($value);
241241
$compare = Arr::get($request->password,$key);
242242
//Log::debug(sprintf('comparing [%s] with [%s] type [%s]',$value,$compare,$hash::id()),['object'=>$hash]);

resources/views/modals/entry-userpassword-check.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
<div class="modal-body">
99
<table class="table table-bordered p-1">
10-
@foreach(($up=$o->getObject('userpassword'))->values as $key => $value)
10+
@foreach(($up=$o->getObject('userpassword'))->values->dot() as $dotkey => $value)
1111
<tr>
1212
<th>Check</th>
13-
<td>{{ $up->render_item_old($key) }}</td>
13+
<td>{{ $up->render_item_old($dotkey) }}</td>
1414
<td>
15-
<input type="password" style="width: 90%" name="password[{{$key}}]"> <i class="fas fa-fw fa-lock"></i>
15+
<input type="password" style="width: 90%" name="password[{{ $dotkey }}]"> <i class="fas fa-fw fa-lock"></i>
1616
<div class="invalid-feedback pb-2">
1717
@lang('Invalid Password')
1818
</div>

0 commit comments

Comments
 (0)