Skip to content

Commit

Permalink
Merge pull request #299 from SaidiAli/development-bonstana
Browse files Browse the repository at this point in the history
added success message on login and signup pages
  • Loading branch information
SaidiAli committed Jul 7, 2020
2 parents 833f9e5 + 5d0c0e9 commit 9624370
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ public function register(Request $request)

if ($res->success) {

$request->session()->flash('message', 'You have registered Successfully');
$request->session()->flash('alert-class', 'alert-success');

$data = $res->data->user->local;
$api_token = $res->data->user->api_token;
$user_role = $res->data->user->local->user_role;
Expand Down
15 changes: 15 additions & 0 deletions resources/views/backend/user/activate.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@section('content')

{{-- error messages --}}
<div class="container-fluid">
<div class="row ">
<div class="col-lg-4 bg-white">
Expand All @@ -24,6 +25,20 @@
height="auto"/> </a>
</div>

@if(Session::has('message'))
<p class="alert {{ Session::get('alert-class', 'alert-danger') }}">{{ Session::get('message') }}</p>
@endif

@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif

<h6 class="h5 mb-0 mt-4">Verify Code</h6>
<p class="text-muted mt-1 mb-5">
Please enter the 6-digit code we sent on your number as SMS
Expand Down

0 comments on commit 9624370

Please sign in to comment.