Postingan lainnya
These credentials do not match our records
apa penyebab These credentials do not match our records ketika register masuk, tapi setelah logout dan login ulang tdk bisa
4 Jawaban:
Pas mau login Email atau password yg agan masukin salah.
Beberapa kali saya coba ganti dan sudah sesuai tp masih gagal?
Login View
<div class="login-box-body">
<!-- BEGIN NOTIFICATION -->
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif
@if (session('warning'))
<div class="alert alert-warning">
{{ session('warning') }}
</div>
@endif
<!-- END NOTIFICATION -->
<p class="login-box-msg">Sign in to start your session</p>
<form method="post" action="{{ url('/login') }}">
{!! csrf_field() !!}
<div class="form-group has-feedback {{ $errors->has('email') ? ' has-error' : '' }}">
<input type="text" class="form-control" name="email" value="{{ old('email') }}" placeholder="Email">
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
@if ($errors->has('email'))
<span class="help-block">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
<div class="form-group has-feedback{{ $errors->has('password') ? ' has-error' : '' }}">
<input type="password" class="form-control" placeholder="Password" name="password">
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
@if ($errors->has('password'))
<span class="help-block">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
<div class="row">
<div class="col-xs-8">
<div class="checkbox icheck">
<label>
<input type="checkbox" name="remember"> Remember Me
</label>
</div>
</div>
<!-- /.col -->
<div class="col-xs-4">
<button type="submit" class="btn btn-primary btn-block btn-flat">Sign In</button>
</div>
<!-- /.col -->
</div>
</form>
<a href="{{ url('/password/reset') }}">I forgot my password</a><br>
<a href="{{ url('/register') }}" class="text-center">Register a new membership</a>
</div>
controller
<?php
namespace App;
use App\Notifications\ConfirmUserEmail;
use App\ActivationRepository;
class ActivationService{
protected $activationRepo;
protected $resendAfter = 24;
public function __construct(ActivationRepository $activationRepo){
$this->activationRepo = $activationRepo;
}
public function sendActivationMail($user){
if($user->activated || !$this->shouldSend($user)){
return;
}
$token = $this->activationRepo->createActivation($user);
$user->notify(new ConfirmUserEmail($token));
}
public function activateUser($token){
$activation = $this->activationRepo->getActivationByToken($token);
if($activation === null){
return null;
}
$user = User::find($activation->user_id);
$user->activated = true;
$user->save();
$this->activationRepo->deleteActivation($token);
return $user;
}
private function shouldSend($user){
$activation = $this->activationRepo->getActivation($user);
return $activation === null || strtotime($activation->created_at) + 60 * 60 * $this->resendAfter < time();
}
}
menurut gua karena masih dalam status login user tersebut,biasa masalah tersebut terdapat di middlewar,kalau saya sendiri biasa membuat link tertentu untuk Auth::logout() jadi bisa mudah tinggal tembak ke link itu untuk memecahkan masalah tersebut
This issue can be frustrating, especially when login credentials are correct but still not recognized. Clearing cache or resetting the password often helps. If you're into gaming, you might enjoy Crown 3 Patti for a seamless experience!