Skip to content

Commit 21d7d31

Browse files
committed
Fix for password handling, when updating userpassword. Fixes #387
1 parent 1875ff2 commit 21d7d31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Classes/LDAP/Attribute/Password/Crypt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ final class Crypt extends Base
1111

1212
public static function subid(string $password): bool
1313
{
14-
return preg_match('/^[\da-f]{2}/',self::password($password));
14+
return preg_match('/^[\da-fA-F]{2}/',self::password($password));
1515
}
1616

1717
public function compare(string $source,string $compare): bool

resources/views/update.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
{{ (($r=$oo->render_item_new($dotkey)) !== NULL) ? $r : '['.strtoupper(__('Deleted')).']' }}
5656
<input type="hidden"
5757
name="{{ $key }}[{{ collect(explode('.',$dotkey))->first() }}][]"
58-
value="{{ $r }}">
58+
value="{{ $oo->values->dot()->get($dotkey) }}">
5959
</td>
6060
@endif
6161
@endforeach

0 commit comments

Comments
 (0)