| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- @extends('admin/public/layout')
- @section('title')一键登录设置@endsection
- @section('css')
- <link href="{{ asset('/static/js/summernote/summernote.css')}}" rel="stylesheet">
- @endsection
- @section('content')
- <section class="content-header">
- <h1>一键登录设置</h1>
- </section>
- <section class="content">
- <div class="row">
- <div class="col-xs-12">
- <div class="box box-default">
- <form role="form" name="addForm" id="register_form" method="POST" action="{{ route('admin.setting.oauth') }}">
- {{ csrf_field() }}
- <div class="box-body">
- <div class="form-group">
- <label for="website_url">开启第三方平台账号登录</label>
- <span class="text-muted">(关闭后则不能使用QQ、微博等第三方平台账号登录系统)</span>
- <div class="radio">
- <label><input type="radio" name="oauth_open" value="1" @if(config('services.oauth_open')) checked @endif > 开启 </label>
- <label class="ml-20"><input type="radio" name="oauth_open" value="0" @if(!config('services.oauth_open')) checked @endif > 关闭 </label>
- </div>
- </div>
- <hr />
- <div class="form-group">
- <label for="website_url">开启QQ登陆</label>
- <span class="text-muted">(关闭后则不显示QQ登陆相关按钮)</span>
- <div class="radio">
- <label><input type="radio" name="oauth_qq_open" value="1" @if(config('services.qq.open')) checked @endif > 开启 </label>
- <label class="ml-20"><input type="radio" name="oauth_qq_open" value="0" @if(!config('services.qq.open')) checked @endif > 关闭 </label>
- </div>
- </div>
- <div class="form-group">
- <label for="oauth_qq_key">QQ互联平台 APP ID</label>
- <input type="text" class="form-control" name="oauth_qq_key" placeholder="APP ID" value="{{ old('oauth_qq_key',config('services.qq.client_id')) }}" />
- </div>
- <div class="form-group">
- <label for="oauth_qq_secret">QQ互联平台 APP key</label>
- <input type="text" class="form-control" name="oauth_qq_secret" placeholder="APP KEY" value="{{ old('oauth_qq_secret',config('services.qq.client_secret')) }}" />
- </div>
- <div class="form-group">
- <label for="oauth_qq_redirect">QQ互联平台回调地址</label>
- <input type="text" class="form-control" name="oauth_qq_redirect" placeholder="回调地址" value="{{ route('auth.oauth.callback',['type'=>'qq']) }}" />
- </div>
- <hr />
- <div class="form-group">
- <label for="website_url">开启微博登陆</label>
- <span class="text-muted">(关闭后则不显示微博登陆相关按钮)</span>
- <div class="radio">
- <label><input type="radio" name="oauth_weibo_open" value="1" @if(config('services.weibo.open')) checked @endif > 开启 </label>
- <label class="ml-20"><input type="radio" name="oauth_weibo_open" value="0" @if(!config('services.weibo.open')) checked @endif > 关闭 </label>
- </div>
- </div>
- <div class="form-group">
- <label for="oauth_weibo_key">微博开放平台 APP ID</label>
- <input type="text" class="form-control" name="oauth_weibo_key" placeholder="APP ID" value="{{ old('oauth_weibo_key',config('services.weibo.client_id')) }}" />
- </div>
- <div class="form-group">
- <label for="oauth_weibo_secret">微博开放平台 APP key</label>
- <input type="text" class="form-control" name="oauth_weibo_secret" placeholder="APP KEY" value="{{ old('oauth_weibo_secret',config('services.weibo.client_secret')) }}" />
- </div>
- <div class="form-group">
- <label for="oauth_weibo_redirect">微博开放平台回调地址</label>
- <input type="text" class="form-control" name="oauth_weibo_redirect" placeholder="回调地址" value="{{ route('auth.oauth.callback',['type'=>'weibo']) }}" />
- </div>
- <hr />
- <div class="form-group">
- <label for="website_url">开启微信扫码登陆</label>
- <span class="text-muted">(关闭后则不显示扫码登陆相关按钮)</span>
- <div class="radio">
- <label><input type="radio" name="oauth_weixinweb_open" value="1" @if(config('services.weixinweb.open')) checked @endif > 开启 </label>
- <label class="ml-20"><input type="radio" name="oauth_weixinweb_open" value="0" @if(!config('services.weixinweb.open')) checked @endif > 关闭 </label>
- </div>
- </div>
- <div class="form-group">
- <label for="oauth_weibo_key">微信开放平台 APP ID</label>
- <input type="text" class="form-control" name="oauth_weixinweb_key" placeholder="APP ID" value="{{ old('oauth_weixinweb_key',config('services.weixinweb.client_id')) }}" />
- </div>
- <div class="form-group">
- <label for="oauth_weibo_secret">微信开放平台 APP key</label>
- <input type="text" class="form-control" name="oauth_weixinweb_secret" placeholder="APP KEY" value="{{ old('oauth_weixinweb_secret',config('services.weixinweb.client_secret')) }}" />
- </div>
- <div class="form-group">
- <label for="oauth_weixinweb_redirect">微信开放平台回调地址</label>
- <input type="text" class="form-control" name="oauth_weixinweb_redirect" placeholder="回调地址" value="{{ route('auth.oauth.callback',['type'=>'weixinweb']) }}" />
- </div>
- </div>
- <div class="box-footer">
- <button type="submit" class="btn btn-primary">保存</button>
- </div>
- </form>
- </div>
- </div>
- </div>
- </section>
- @endsection
- @section('script')
- <script type="text/javascript">
- $(function(){
- set_active_menu('third_part',"{{ route('admin.setting.oauth') }}");
- });
- </script>
- @endsection
|