hello i have a laravel app with registration form now anyone can register multi accounts what i want is to limit registration for 1 account per ip any one can give me an idea for that ?? here is my registration form if there is a quick solution please tell me and also i want users to use only gmail
<h4> </h4><span class="liner"></span>
<div class="row">
<div class="col-md-6 col-md-offset-2 col-sm-12">
<h4> Registration </h4><span class="liner"></span>
<div class="widget-content clearfix">
<form action="" method="post" class="form-horizontal" enctype="multipart/form-data">
{!! csrf_field() !!}
<div class="form-group">
<label for="inputEmail3" class="col-sm-3 control-label">Member Plan</label>
<div class="col-sm-8">
<select name="price_id" id="" class="form-control" required>
@foreach($price as $p)
@if($p->id == $pr)
<option value="" selected> - </option>
@else
<option value=""> - </option>
@endif
@endforeach
</select>
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-3 control-label">Name</label>
<div class="col-sm-8">
<input type="text" name="name" class="form-control" id="inputEmail3" placeholder="Name" required>
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-3 control-label">Email</label>
<div class="col-sm-8">
<input type="email" name="email" class="form-control" id="inputEmail3" placeholder="Email" required>
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-3 control-label">Phone</label>
<div class="col-sm-8">
<input type="text" name="phone" required class="form-control" id="inputEmail3" placeholder="Phone">
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-3 control-label">Address</label>
<div class="col-sm-8">
<textarea name="address" id="" cols="30" rows="3"
class="form-control" required></textarea>
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-3 control-label">Profile Picture</label>
<div class="col-sm-8">
<input type="file" name="image" id="" required class="form-control">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label">Password</label>
<div class="col-sm-8">
<input type="password" required name="password" class="form-control" id="inputPassword3" placeholder="Password">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label">Confirm Password</label>
<div class="col-sm-8">
<input type="password" required name="password_confirmation" class="form-control" id="inputPassword3" placeholder="Password">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-8">
<button type="submit" class="btn btn-default"><i class="fa fa-send"></i> Registration</button>
</div>
</div>
</form>
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2jclk5n
via IFTTT
Aucun commentaire:
Enregistrer un commentaire