Commit at 2017/06/13 13:20

This commit is contained in:
catsworld
2017-06-13 13:20:11 +08:00
2 changed files with 20 additions and 7 deletions
+13 -1
View File
@@ -58,6 +58,18 @@ class AuthController extends Controller
}
else
{
if ($user->baned) {
// log start
$log = new AuthLog();
$log->user_id = $user->id;
$log->ip = $request->ip();
$log->event = "cas_login_banned";
$log->save();
// log end
//
return Redirect::back()->withInput()->withErrors('你的账号被封禁了,请联系管理员。');
}
// log start
$log = new AuthLog();
$log->user_id = $user->id;
@@ -114,7 +126,7 @@ class AuthController extends Controller
$log->save();
// log end
//
return Redirect::back()->withInput()->withErrors('You\'re banned!');
return Redirect::back()->withInput()->withErrors('你的账号被封禁了,请联系管理员。');
}
//Successfully logged in
+7 -6
View File
@@ -1,4 +1,4 @@
<div class="footer">
<div class="footer">
<div class="container hidden-sm hidden-xs">
<ul class="pull-left">
<li>© {{date("Y")}} 东北大学先锋网</li>
@@ -17,13 +17,14 @@
</div>
</footer>
@if( env('APP_DEBUG') )
<footer class="row">
<div class="small-11 small-centered columns">
<footer class="row">
<div class="small-11 small-centered columns">
<span>
<center>
当前处于调试模式<br> 程序版本:{{ config('app.version') }}&nbsp;&nbsp; 文件版本:<a href="https://github.com/NEUP-Net-Depart/NEUP-FleaMarket/commit/{{ explode(' ', exec('git log --pretty=oneline -1'))[0] }}">{{ exec('git log --abbrev-commit --pretty=oneline -1') }}</a>
当前处于调试模式<br> 程序版本:{{ config('app.version') }}&nbsp;&nbsp; 文件版本:<a
href="https://github.com/NEUP-Net-Depart/NEUP-FleaMarket/commit/{{ explode(' ', exec('git log --pretty=oneline -1'))[0] }}">{{ exec('git log --abbrev-commit --pretty=oneline -1') }}</a>
</center>
</span>
</div>
</footer>
</div>
</footer>
@endif