Skip to content

Commit

Permalink
registro solo desde la APP temporal
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiagoSierra committed Jul 8, 2022
1 parent 336f30f commit 4d153f1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Http/Controllers/Api/V1/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ public function login(LoginRequest $request)

public function register(RegisterRequest $request)
{

if(!($request->ajax())){
exit(0);
return back();
}

$user = User::create([
'UserName' => $request->UserName,
Expand Down
10 changes: 10 additions & 0 deletions resources/views/auth/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

@section('content')
<div class="row">

@php
// temporal mientras se rediseña el formulario de registro desde la WEB,
// los usuarios de momento podran activarse o registrarse desde la APP
if(!(request()->ajax())){
exit(0);
return back();
}
@endphp
<div class="col-md-5 ml-auto">
<div class="info-area info-horizontal mt-5">
<div class="icon icon-warning">
Expand Down
2 changes: 2 additions & 0 deletions resources/views/layouts/navbars/navs/guest.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@
@guest

<li class="nav-item ">
{{-- EL REGISTRO SOLO SE PODRA HACER DESDE LA APP HASTA QUE EXISTA UN DISEÑO WEB
<a href="{{ route('register') }}" class="nav-link">
<i class="tim-icons icon-laptop"></i> {{ __('Register') }}
</a>
--}}
</li>
<li class="nav-item ">
<a href="{{ route('login') }}" class="nav-link">
Expand Down

0 comments on commit 4d153f1

Please sign in to comment.