Merge branch 'master' of github.com:akaunting/akaunting
This commit is contained in:
@ -320,28 +320,4 @@ class Customers extends Controller
|
||||
|
||||
return response()->json($customer);
|
||||
}
|
||||
|
||||
public function field(BaseRequest $request)
|
||||
{
|
||||
$html = '';
|
||||
|
||||
if ($request['fields']) {
|
||||
foreach ($request['fields'] as $field) {
|
||||
switch ($field) {
|
||||
case 'password':
|
||||
$html .= \Form::passwordGroup('password', trans('auth.password.current'), 'key', [], 'col-md-6 password');
|
||||
break;
|
||||
case 'password_confirmation':
|
||||
$html .= \Form::passwordGroup('password_confirmation', trans('auth.password.current_confirm'), 'key', [], 'col-md-6 password');
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$json = [
|
||||
'html' => $html
|
||||
];
|
||||
|
||||
return response()->json($json);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user