5.1 Auth

http://laravel.com/

http://kejyun.github.io/Laravel-4-Docum ... roduction/
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

5.1 Auth

文章 yehlu »

yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: 5.1 Auth

文章 yehlu »

認證完轉向

app/Http/Controllers/Auth/AuthController.php

代碼: 選擇全部

    protected $redirectPath = '/stock';
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Laravel 5.1: How to authenticate only active users

文章 yehlu »

http://stackoverflow.com/questions/3433 ... tive-users

app/Http/Controllers/Auth/AuthController.php

代碼: 選擇全部


use Illuminate\Http\Request;


protected function getCredentials(Request $request)
{
    $crendentials=$request->only($this->loginUsername(), 'password');
    $crendentials['active']=1;
    return $crendentials;
}

回覆文章

回到「laravel」