Laravel 5.3에서 뭔가 바뀌 었습니다.Laravel 5.3 추가 조건으로 인증
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Auth;
class AuthController extends Controller
{
/**
* Handle an authentication attempt.
*
* @return Response
*/
public function authenticate()
{
if (Auth::attempt(['email' => $email, 'password' => $password])) {
// Authentication passed...
return redirect()->intended('dashboard');
}
}
}
그러나이 컨트롤러 : 문서에서이 우리가 우리의 추가 조건을 추가 할 수 있습니다 컨트롤러가
내가 그 생성해야 AuthController는 만 인 LoginController 있습니다 ..... 더 이상 존재하지 않는 AuthController 또는 무엇을?
그래서 질문은 사용자가 해당 5.3에 LoginController
을 사용할 수 있습니다
'active' => 1
니스 ... 난 이런 식으로했다!을) -> user() -> active) { auth() -> logout(); return ('login') -> with ('warning', 'Sie sind noch nicht aktiviert!'); } } – lewis4u
도움이 되니 기쁩니다. –
질문이 하나 더 있습니다. 이제 새 사용자를 등록하면 즉시 로그인됩니다 ....이 문제를 방지하는 방법 ??? 그럼 내가 새 질문을해야 할까? – lewis4u