mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
public key editable
This commit is contained in:
@@ -65,29 +65,26 @@ class User extends Resource
|
|||||||
->sortable()
|
->sortable()
|
||||||
->rules('required', 'max:255'),
|
->rules('required', 'max:255'),
|
||||||
|
|
||||||
Text::make(__('Public Key'), 'public_key')
|
|
||||||
->rules('nullable', 'string')->hideFromIndex(),
|
|
||||||
|
|
||||||
Text::make(__('Email'), 'email')
|
|
||||||
->rules('nullable', 'string')->hideFromIndex(),
|
|
||||||
|
|
||||||
Text::make(__('Lightning Address'), 'lightning_address')
|
|
||||||
->help(__('for example xy@getalby.com'))
|
|
||||||
->rules('nullable', 'string'),
|
|
||||||
|
|
||||||
Text::make(__('LNURL'), 'lnurl')
|
|
||||||
->help(__('starts with: lnurl1dp68gurn8gh....'))
|
|
||||||
->rules('nullable', 'string'),
|
|
||||||
|
|
||||||
Text::make(__('Node Id'), 'node_id')
|
|
||||||
->rules('nullable', 'string'),
|
|
||||||
|
|
||||||
Text::make('Email')
|
Text::make('Email')
|
||||||
->sortable()
|
->sortable()
|
||||||
->rules('required', 'email', 'max:254')
|
->rules('required', 'email', 'max:254')
|
||||||
->creationRules('unique:users,email')
|
->creationRules('unique:users,email')
|
||||||
->updateRules('unique:users,email,{{resourceId}}'),
|
->updateRules('unique:users,email,{{resourceId}}'),
|
||||||
|
|
||||||
|
Text::make(__('Public Key'), 'public_key')
|
||||||
|
->rules('nullable', 'string')->hideFromIndex(),
|
||||||
|
|
||||||
|
Text::make(__('Lightning Address'), 'lightning_address')
|
||||||
|
->help(__('for example xy@getalby.com'))
|
||||||
|
->rules('nullable', 'string')->hideFromIndex(),
|
||||||
|
|
||||||
|
Text::make(__('LNURL'), 'lnurl')
|
||||||
|
->help(__('starts with: lnurl1dp68gurn8gh....'))
|
||||||
|
->rules('nullable', 'string')->hideFromIndex(),
|
||||||
|
|
||||||
|
Text::make(__('Node Id'), 'node_id')
|
||||||
|
->rules('nullable', 'string')->hideFromIndex(),
|
||||||
|
|
||||||
// Password::make('Password')
|
// Password::make('Password')
|
||||||
// ->onlyOnForms()
|
// ->onlyOnForms()
|
||||||
// ->creationRules('required', Rules\Password::defaults())
|
// ->creationRules('required', Rules\Password::defaults())
|
||||||
|
|||||||
Reference in New Issue
Block a user