diff --git a/lang/en.json b/lang/en.json index 1897fbe..53a60a8 100644 --- a/lang/en.json +++ b/lang/en.json @@ -360,7 +360,7 @@ "Hey again!": "Hey again!", "Before you can get started with Investbrain, let's complete your profile:": "Before you can get started with Investbrain, let's complete your profile:", - "Create Password": "Create Password", + "Get Started": "Get Started", "You do not have access to that portfolio.": "You do not have access to that portfolio.", "Import starting...": "Import starting...", diff --git a/lang/es.json b/lang/es.json index e724407..a09425e 100644 --- a/lang/es.json +++ b/lang/es.json @@ -360,7 +360,7 @@ "Hey again!": "¡Oye de nuevo!", "Before you can get started with Investbrain, let's complete your profile:": "Antes de poder comenzar a utilizar Investbrain, deberá crear una cuenta:", - "Create Password": "Crear Contraseña", + "Get Started": "Crear Contraseña", "You do not have access to that portfolio.": "No tienes acceso a ese portafolio.", "Import starting...": "Iniciando la importación...", diff --git a/resources/views/livewire/invited-onboarding-form.blade.php b/resources/views/livewire/invited-onboarding-form.blade.php index fcfea4d..2fa4a38 100644 --- a/resources/views/livewire/invited-onboarding-form.blade.php +++ b/resources/views/livewire/invited-onboarding-form.blade.php @@ -12,6 +12,9 @@ new class extends Component { public Portfolio $portfolio; public User $user; + #[Rule('required|string')] + public string $name; + #[Rule('required|string|min:8|confirmed')] public string $password; @@ -19,11 +22,17 @@ new class extends Component { public string $password_confirmation; // methods - public function updatePassword() + public function mount() + { + $this->name = $this->user->name; + } + + public function updateUserInformation() { $this->validate(); + $this->user->name = $this->name; $this->user->password = Hash::make($this->password); $this->user->email_verified_at = now(); $this->user->save(); @@ -35,11 +44,16 @@ new class extends Component { }; ?> - +
- + +
+ +
+ +
@@ -50,7 +64,7 @@ new class extends Component {
- {{ __('Create Password') }} + {{ __('Get Started') }}
\ No newline at end of file