├── public ├── .gitkeep ├── materialize │ ├── .gitkeep │ ├── font │ │ ├── roboto │ │ │ ├── Roboto-Bold.ttf │ │ │ ├── Roboto-Light.ttf │ │ │ ├── Roboto-Thin.ttf │ │ │ ├── Roboto-Medium.ttf │ │ │ └── Roboto-Regular.ttf │ │ └── material-design-icons │ │ │ ├── Material-Design-Icons.eot │ │ │ ├── Material-Design-Icons.ttf │ │ │ └── Material-Design-Icons.woff │ ├── css │ │ └── style.css │ └── js │ │ └── restfulizer.js ├── gumby │ ├── fonts │ │ └── icons │ │ │ ├── entypo.eot │ │ │ ├── entypo.ttf │ │ │ └── entypo.woff │ ├── img │ │ ├── gumby_mainlogo.png │ │ ├── img_silence_demo.jpg │ │ └── gumby_mainlogo@2x.png │ ├── css │ │ └── style.css │ └── js │ │ └── main.js ├── bootstrap │ ├── img │ │ ├── glyphicons-halflings.png │ │ └── glyphicons-halflings-white.png │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ └── glyphicons-halflings-regular.woff │ └── js │ │ └── restfulizer.js ├── blank │ ├── sentinel-blank-theme.css │ └── restfulizer.js └── foundation │ └── js │ └── restfulizer.js ├── src ├── lang │ ├── .gitkeep │ ├── zh-CN │ │ ├── sessions.php │ │ ├── groups.php │ │ ├── pagination.php │ │ ├── pages.php │ │ └── users.php │ ├── zh-TW │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ ├── pages.php │ │ └── users.php │ ├── ar │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ ├── pages.php │ │ └── users.php │ ├── pt-BR │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ └── pages.php │ ├── ru │ │ ├── pagination.php │ │ ├── sessions.php │ │ ├── groups.php │ │ └── pages.php │ ├── tr │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ └── pages.php │ ├── cs │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ └── pages.php │ ├── en │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ └── pages.php │ ├── vi │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ └── pages.php │ ├── nb │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ └── pages.php │ ├── nl │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ └── pages.php │ ├── pt-PT │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ └── pages.php │ ├── da │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ └── pages.php │ ├── es-ES │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ └── pages.php │ ├── it │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ └── pages.php │ ├── fr │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ └── pages.php │ ├── pl │ │ ├── sessions.php │ │ ├── pagination.php │ │ ├── groups.php │ │ └── pages.php │ ├── de │ │ ├── pagination.php │ │ ├── sessions.php │ │ ├── groups.php │ │ └── pages.php │ └── bg │ │ ├── pagination.php │ │ ├── sessions.php │ │ ├── groups.php │ │ └── pages.php ├── views │ ├── .gitkeep │ ├── gumby │ │ ├── .gitkeep │ │ ├── emails │ │ │ ├── welcome.blade.php │ │ │ └── reset.blade.php │ │ ├── layouts │ │ │ └── notifications.blade.php │ │ ├── groups │ │ │ ├── show.blade.php │ │ │ ├── edit.blade.php │ │ │ ├── create.blade.php │ │ │ └── index.blade.php │ │ ├── users │ │ │ ├── forgot.blade.php │ │ │ ├── resend.blade.php │ │ │ ├── show.blade.php │ │ │ ├── reset.blade.php │ │ │ └── register.blade.php │ │ └── sessions │ │ │ └── login.blade.php │ ├── blank │ │ ├── emails │ │ │ ├── welcome.blade.php │ │ │ └── reset.blade.php │ │ ├── groups │ │ │ ├── show.blade.php │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ └── index.blade.php │ │ ├── users │ │ │ ├── forgot.blade.php │ │ │ ├── resend.blade.php │ │ │ ├── reset.blade.php │ │ │ ├── create.blade.php │ │ │ ├── register.blade.php │ │ │ ├── show.blade.php │ │ │ └── index.blade.php │ │ ├── layouts │ │ │ └── notifications.blade.php │ │ └── sessions │ │ │ └── login.blade.php │ ├── bootstrap │ │ ├── emails │ │ │ ├── welcome.blade.php │ │ │ └── reset.blade.php │ │ ├── groups │ │ │ ├── show.blade.php │ │ │ ├── edit.blade.php │ │ │ └── create.blade.php │ │ ├── users │ │ │ ├── forgot.blade.php │ │ │ ├── resend.blade.php │ │ │ ├── reset.blade.php │ │ │ ├── show.blade.php │ │ │ └── register.blade.php │ │ ├── layouts │ │ │ └── notifications.blade.php │ │ └── sessions │ │ │ └── login.blade.php │ ├── foundation │ │ ├── emails │ │ │ ├── welcome.blade.php │ │ │ └── reset.blade.php │ │ ├── groups │ │ │ ├── show.blade.php │ │ │ ├── index.blade.php │ │ │ └── create.blade.php │ │ ├── layouts │ │ │ └── notifications.blade.php │ │ └── users │ │ │ ├── resend.blade.php │ │ │ ├── forgot.blade.php │ │ │ ├── show.blade.php │ │ │ └── reset.blade.php │ └── materialize │ │ ├── emails │ │ ├── welcome.blade.php │ │ └── reset.blade.php │ │ ├── groups │ │ ├── show.blade.php │ │ ├── edit.blade.php │ │ └── create.blade.php │ │ ├── users │ │ ├── resend.blade.php │ │ ├── forgot.blade.php │ │ └── reset.blade.php │ │ └── sessions │ │ └── login.blade.php ├── config │ ├── .gitkeep │ └── hashids.php ├── controllers │ └── .gitkeep ├── validators.php ├── Sentinel │ ├── DataTransferObjects │ │ ├── FailureResponse.php │ │ ├── SuccessResponse.php │ │ ├── ExceptionResponse.php │ │ └── BaseResponse.php │ ├── Models │ │ └── Group.php │ ├── Repositories │ │ ├── Session │ │ │ └── SentinelSessionRepositoryInterface.php │ │ └── Group │ │ │ └── SentinelGroupRepositoryInterface.php │ ├── Middleware │ │ ├── SentryGuest.php │ │ ├── SentryAuth.php │ │ ├── SentryMember.php │ │ └── SentryAdminAccess.php │ ├── FormRequests │ │ ├── UserUpdateRequest.php │ │ ├── EmailRequest.php │ │ ├── GroupCreateRequest.php │ │ ├── GroupUpdateRequest.php │ │ ├── ResetPasswordRequest.php │ │ ├── LoginRequest.php │ │ ├── ChangePasswordRequest.php │ │ ├── UserCreateRequest.php │ │ └── RegisterRequest.php │ ├── Traits │ │ └── SentinelViewfinderTrait.php │ └── Mail │ │ ├── Welcome.php │ │ └── PasswordReset.php └── seeds │ ├── DatabaseSeeder.php │ ├── SentryGroupSeeder.php │ ├── SentryUserSeeder.php │ └── SentryUserGroupSeeder.php ├── tests ├── .gitkeep ├── _data │ └── prep.sqlite ├── SentrySessionManagerTests.php └── SentinelTestCase.php ├── migrations ├── .gitkeep ├── 2015_01_14_053439_sentinel_add_username.php ├── 2012_12_06_225945_cartalyst_sentry_install_users_groups_pivot.php ├── 2012_12_06_225929_cartalyst_sentry_install_groups.php └── 2012_12_06_225988_cartalyst_sentry_install_throttle.php ├── .gitignore ├── phpunit.xml └── composer.json /public/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/lang/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/views/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/config/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/materialize/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/controllers/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/views/gumby/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/_data/prep.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/tests/_data/prep.sqlite -------------------------------------------------------------------------------- /public/gumby/fonts/icons/entypo.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/gumby/fonts/icons/entypo.eot -------------------------------------------------------------------------------- /public/gumby/fonts/icons/entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/gumby/fonts/icons/entypo.ttf -------------------------------------------------------------------------------- /public/gumby/img/gumby_mainlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/gumby/img/gumby_mainlogo.png -------------------------------------------------------------------------------- /public/gumby/fonts/icons/entypo.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/gumby/fonts/icons/entypo.woff -------------------------------------------------------------------------------- /public/gumby/img/img_silence_demo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/gumby/img/img_silence_demo.jpg -------------------------------------------------------------------------------- /public/gumby/img/gumby_mainlogo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/gumby/img/gumby_mainlogo@2x.png -------------------------------------------------------------------------------- /public/bootstrap/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/bootstrap/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /public/materialize/font/roboto/Roboto-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/materialize/font/roboto/Roboto-Bold.ttf -------------------------------------------------------------------------------- /public/materialize/font/roboto/Roboto-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/materialize/font/roboto/Roboto-Light.ttf -------------------------------------------------------------------------------- /public/materialize/font/roboto/Roboto-Thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/materialize/font/roboto/Roboto-Thin.ttf -------------------------------------------------------------------------------- /public/materialize/font/roboto/Roboto-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/materialize/font/roboto/Roboto-Medium.ttf -------------------------------------------------------------------------------- /public/materialize/font/roboto/Roboto-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/materialize/font/roboto/Roboto-Regular.ttf -------------------------------------------------------------------------------- /public/bootstrap/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/bootstrap/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /public/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /public/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /public/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /.idea 3 | composer.phar 4 | composer.lock 5 | .DS_Store 6 | tests/_output/* 7 | tests/_output/* 8 | tests/_data/db.sqlite 9 | .phpunit.result.cache 10 | -------------------------------------------------------------------------------- /public/gumby/css/style.css: -------------------------------------------------------------------------------- 1 | /* 2 | We highly recommend you use SASS and write your custom styles in sass/_custom.scss. 3 | However, this blank file is available if you prefer 4 | */ 5 | -------------------------------------------------------------------------------- /public/materialize/font/material-design-icons/Material-Design-Icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/materialize/font/material-design-icons/Material-Design-Icons.eot -------------------------------------------------------------------------------- /public/materialize/font/material-design-icons/Material-Design-Icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/materialize/font/material-design-icons/Material-Design-Icons.ttf -------------------------------------------------------------------------------- /public/materialize/font/material-design-icons/Material-Design-Icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rydurham/Sentinel/HEAD/public/materialize/font/material-design-icons/Material-Design-Icons.woff -------------------------------------------------------------------------------- /src/validators.php: -------------------------------------------------------------------------------- 1 | success = false; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Sentinel/DataTransferObjects/SuccessResponse.php: -------------------------------------------------------------------------------- 1 | success = true; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Sentinel/DataTransferObjects/ExceptionResponse.php: -------------------------------------------------------------------------------- 1 | success = false; 12 | $this->error = true; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Sentinel/Models/Group.php: -------------------------------------------------------------------------------- 1 | attributes['id']); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /public/materialize/css/style.css: -------------------------------------------------------------------------------- 1 | /* Custom Stylesheet */ 2 | /** 3 | * Use this file to override Materialize files so you can update 4 | * the core Materialize files in the future 5 | * 6 | * Made By MaterializeCSS.com 7 | */ 8 | 9 | .icon-block { 10 | padding: 0 15px; 11 | } 12 | 13 | .title-button { 14 | margin-top: 30px; 15 | } 16 | 17 | a.disabled { 18 | pointer-events: none; 19 | cursor: default; 20 | } -------------------------------------------------------------------------------- /src/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call('UserTableSeeder'); 17 | $this->call('SentryGroupSeeder'); 18 | $this->call('SentryUserSeeder'); 19 | $this->call('SentryUserGroupSeeder'); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/lang/zh-CN/sessions.php: -------------------------------------------------------------------------------- 1 | "无效的用户名或密码", 12 | 13 | "notactive" => "你还未激活此帐户。 重新发送激活电子邮件?", 14 | 15 | "suspended" => "您的帐户已被暂停使用。", 16 | 17 | "banned" => "你已被禁止。", 18 | 19 | ); 20 | -------------------------------------------------------------------------------- /src/lang/zh-TW/sessions.php: -------------------------------------------------------------------------------- 1 | "無效的使用者名稱或密碼", 12 | 13 | "notactive" => "您尚未啟動您的帳戶,是否需要為您 重寄啟動信 呢?", 14 | 15 | "suspended" => "您的帳戶已經暫時被停用", 16 | 17 | "banned" => "您已經被禁用了", 18 | 19 | ); 20 | -------------------------------------------------------------------------------- /src/views/blank/emails/welcome.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |Account: {{{ $email }}}
10 |To activate your account, click here.
11 |Or point your browser to this address:
{{ route('sentinel.activate', [$hash, urlencode($code)]) }}
Thank you,
13 | ~The Admin Team
Account: {{{ $email }}}
10 |To activate your account, click here.
11 |Or point your browser to this address:
{{ route('sentinel.activate', [$hash, urlencode($code)]) }}
Thank you,
13 | ~The Admin Team
Account: {{{ $email }}}
10 |To activate your account, click here.
11 |Or point your browser to this address:
{{ route('sentinel.activate', [$hash, urlencode($code)]) }}
Thank you,
13 | ~The Admin Team
Account: {{{ $email }}}
10 |To activate your account, click here.
11 |Or point your browser to this address:
{{ route('sentinel.activate', [$hash, urlencode($code)]) }}
Thank you,
13 | ~The Admin Team
Account: {{{ $email }}}
10 |To activate your account, click here.
11 |Or point your browser to this address:
{{ route('sentinel.activate', [$hash, urlencode($code)]) }}
Thank you,
13 | ~The Admin Team
To reset your password, click here. If you did not request a password reset, you can safely ignore this email - nothing will be changed.
10 |Or point your browser to this address:
{{ route('sentinel.reset.form', [$hash, urlencode($code)]) }}
Thank you,
12 | ~The Admin Team
To reset your password, click here. If you did not request a password reset, you can safely ignore this email - nothing will be changed.
10 |Or point your browser to this address:
{{ route('sentinel.reset.form', [$hash, urlencode($code)]) }}
Thank you,
12 | ~The Admin Team
To reset your password, click here. If you did not request a password reset, you can safely ignore this email - nothing will be changed.
10 |Or point your browser to this address:
{{ route('sentinel.reset.form', [$hash, urlencode($code)]) }}
Thank you,
12 | ~The Admin Team
To reset your password, click here. If you did not request a password reset, you can safely ignore this email - nothing will be changed.
10 |Or point your browser to this address:
{{ route('sentinel.reset.form', [$hash, urlencode($code)]) }}
Thank you,
12 | ~The Admin Team
To reset your password, click here. If you did not request a password reset, you can safely ignore this email - nothing will be changed.
10 |Or point your browser to this address:
{{ route('sentinel.reset.form', [$hash, urlencode($code)]) }}
Thank you,
12 | ~The Admin Team
{{ var_dump($group) }}
33 | {{ var_dump($group) }}
32 | {{ var_dump($group) }}
34 | First Name: {{ $user->first_name }}
26 | @endif 27 | @if ($user->last_name) 28 |Last Name: {{ $user->last_name }}
29 | @endif 30 |Email: {{ $user->email }}
31 | 32 |Account created: {{ $user->created_at }}
33 |Last Updated: {{ $user->updated_at }}
34 | 35 | @foreach ($user->groups as $group) 36 |{{ var_dump($user) }}
46 | First Name: {{ $user->first_name }}
25 | @endif 26 | @if ($user->last_name) 27 |Last Name: {{ $user->last_name }}
28 | @endif 29 | 30 |Email: {{ $user->email }}
31 | 32 |Account created: {{ $user->created_at }}
33 | 34 |Last Updated: {{ $user->updated_at }}
35 | 36 | 37 | 38 |41 |
{{ var_dump($user) }}
56 |
57 | @stop
58 |
--------------------------------------------------------------------------------
/src/views/gumby/users/reset.blade.php:
--------------------------------------------------------------------------------
1 | @extends(config('sentinel.layout'))
2 |
3 | {{-- Web site Title --}}
4 | @section('title', 'Resend Activation')
5 |
6 | {{-- Content --}}
7 | @section('content')
8 |
9 | First Name: {{ $user->first_name }}
27 | @endif 28 | @if ($user->last_name) 29 |Last Name: {{ $user->last_name }}
30 | @endif 31 |Email: {{ $user->email }}
32 | 33 |Account created: {{ $user->created_at }}
36 |Last Updated: {{ $user->updated_at }}
37 | 38 |{{ var_dump($user) }}
60 |First Name: {{ $user->first_name }}
27 | @endif 28 | @if ($user->last_name) 29 |Last Name: {{ $user->last_name }}
30 | @endif 31 |Email: {{ $user->email }}
32 | 33 |
34 |
35 | Account created: {{ $user->created_at }}
36 | Last Updated: {{ $user->updated_at }}
37 |
38 |
{{ var_dump($user) }}
63 | | Name | 18 |Permissions | 19 |Options | 20 | 21 | 22 | @foreach ($groups as $group) 23 |
|---|---|---|
| {{ $group->name }} | 25 |26 | getPermissions(); 28 | $keys = array_keys($permissions); 29 | $last_key = end($keys); 30 | ?> 31 | @foreach ($permissions as $key => $value) 32 | {{ ucfirst($key) . ($key == $last_key ? '' : ', ') }} 33 | @endforeach 34 | | 35 |36 | 37 | 38 | | 39 |
| User | 18 |Status | 19 |Options | 20 | 21 | 22 | @foreach ($users as $user) 23 |
|---|---|---|
| 25 | {{ $user->email }} 26 | | 27 |28 | {{ $user->status }} 29 | | 30 |31 | 32 | @if ($user->status != 'Suspended') 33 | 34 | @else 35 | 36 | @endif 37 | @if ($user->status != 'Banned') 38 | 39 | @else 40 | 41 | @endif 42 | 43 | | 44 |
| Name | 24 |Permissions | 25 |Options | 26 | 27 | 28 | @foreach ($groups as $group) 29 |
|---|---|---|
| 31 | {{ $group->name }} 32 | | 33 |34 | getPermissions(); 36 | $keys = array_keys($permissions); 37 | $last_key = end($keys); 38 | ?> 39 | @foreach ($permissions as $key => $value) 40 | {{ ucfirst($key) . ($key == $last_key ? '' : ', ') }} 41 | @endforeach 42 | | 43 |44 | 45 | 46 | | 47 |
| Name | 23 |Permissions | 24 |Options | 25 | 26 | 27 | @foreach ($groups as $group) 28 |
|---|---|---|
| 30 | | 31 | getPermissions(); 33 | $keys = array_keys($permissions); 34 | $last_key = end($keys); 35 | ?> 36 | @foreach ($permissions as $key => $value) 37 | {{ ucfirst($key) . ($key == $last_key ? '' : ', ') }} 38 | @endforeach 39 | | 40 |
41 |
42 | Edit
43 |
44 |
45 | Delete
46 |
47 | |
48 |