sosaman's avatar

Display Pop Up message that shows Registration Details after Successful registrration

Hi guys, Im working on a personal project, and I would like that once a user registers, he/she sees a popup that shows all the registration details(Username, Password, Phone Number etc) and then he can screenshot the details and click 'okay".

Right now, ive been able to code it to the point where it redirects to login after registration. But no popup shows. Here is what i have currently in my registercontroller.php file:

}

public function register(Request $request)
{
    $this->validator($request->all())->validate();
    event(new Registered($user = $this->create($request->all())));
    // $this->guard()->login($user);
    return $this->registered($request, $user)
                    ?: redirect($this->redirectPath());
}

After successful registration, Id like a popup to show something like

"Hello [Firstname], Your registration is successful. Here are your details: Usermane: Password: Phone Number: Email:"

{CLose}. {Proceed to Login}

P.S. Im still a newbie to laravel, tthank you all

0 likes
2 replies
jlrdw's avatar

Just put in in a modal. But are you sure you want to display password? I wouldn't. The user needs to write the password when it was created.

ive been able to code it to the point where it redirects to login after registration

Redirect to a dashboard or other welcome page, have a flag set, then if new user show message, otherwise don't.

But there are many ways to achieve this.

sosaman's avatar

@jlrdw thanks for the reply. COuld you be of help in point me to how i can achieve this without breaking the site,

Please or to participate in this conversation.