2023-03-02 07:21:53 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Classes\LDAP\Attribute;
|
|
|
|
|
2023-04-02 12:07:15 +00:00
|
|
|
use Illuminate\Contracts\View\View;
|
|
|
|
|
2023-03-02 07:21:53 +00:00
|
|
|
use App\Classes\LDAP\Attribute;
|
2024-01-09 06:44:50 +00:00
|
|
|
use App\Traits\MD5Updates;
|
2023-03-02 07:21:53 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Represents an attribute whose values are passwords
|
|
|
|
*/
|
2023-04-02 12:07:15 +00:00
|
|
|
final class Password extends Attribute
|
2023-03-02 07:21:53 +00:00
|
|
|
{
|
2024-01-09 06:44:50 +00:00
|
|
|
use MD5Updates;
|
|
|
|
|
2024-01-19 23:36:30 +00:00
|
|
|
public function render(bool $edit=FALSE,bool $old=FALSE,bool $new=FALSE): View
|
2023-03-02 07:21:53 +00:00
|
|
|
{
|
2023-04-02 12:07:15 +00:00
|
|
|
return view('components.attribute.password')
|
2024-01-19 23:36:30 +00:00
|
|
|
->with('o',$this)
|
2023-04-02 12:07:15 +00:00
|
|
|
->with('edit',$edit)
|
2024-01-19 23:36:30 +00:00
|
|
|
->with('old',$old)
|
|
|
|
->with('new',$new);
|
2023-03-02 07:21:53 +00:00
|
|
|
}
|
|
|
|
}
|