Fix requiring verification in closet page

This commit is contained in:
Pig Fang 2019-04-20 15:14:25 +08:00
parent b626832475
commit 79e5909bdd

View File

@ -15,7 +15,7 @@ class ClosetController extends Controller
{ {
return view('user.closet') return view('user.closet')
->with('extra', [ ->with('extra', [
'unverified' => option('require_verification') && ! $user->verified, 'unverified' => option('require_verification') && ! auth()->user()->verified,
'rule' => trans('user.player.player-name-rule.'.option('player_name_rule')), 'rule' => trans('user.player.player-name-rule.'.option('player_name_rule')),
'length' => trans( 'length' => trans(
'user.player.player-name-length', 'user.player.player-name-length',