Compare commits
10 commits
e4ab93340d
...
7e6047dd01
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e6047dd01 | ||
|
|
300b3287ca | ||
|
|
0aa9ee78bb | ||
|
|
9a8a2e2215 | ||
|
|
1bbbdd0fde | ||
|
|
6d81b2767e | ||
|
|
ba038cd32a | ||
|
|
e4035ed5a2 | ||
|
|
2c4eace82b | ||
|
|
da483342db |
63
.env.msya
Executable file
63
.env.msya
Executable file
|
|
@ -0,0 +1,63 @@
|
||||||
|
APP_NAME=Laravel
|
||||||
|
APP_ENV=local
|
||||||
|
APP_KEY=base64:eJI8ve7jz/7HUcF9BulrRzom3GstX/2XCz8c0L4owQ8=
|
||||||
|
APP_DEBUG=false
|
||||||
|
APP_URL=team.msya.gov.tt
|
||||||
|
|
||||||
|
LOG_CHANNEL=stack
|
||||||
|
LOG_LEVEL=debug
|
||||||
|
|
||||||
|
DB_CONNECTION=mysql
|
||||||
|
DB_HOST=172.16.121.117
|
||||||
|
DB_PORT=3306
|
||||||
|
DB_DATABASE=team_v3
|
||||||
|
DB_USERNAME=pcsupport
|
||||||
|
DB_PASSWORD=Techit550!
|
||||||
|
|
||||||
|
BROADCAST_DRIVER=log
|
||||||
|
CACHE_DRIVER=file
|
||||||
|
QUEUE_CONNECTION=sync
|
||||||
|
SESSION_DRIVER=file
|
||||||
|
SESSION_LIFETIME=120
|
||||||
|
|
||||||
|
REDIS_HOST=127.0.0.1
|
||||||
|
REDIS_PASSWORD=null
|
||||||
|
REDIS_PORT=6379
|
||||||
|
|
||||||
|
MAIL_MAILER=smtp
|
||||||
|
MAIL_HOST=mailrelay.gov.tt
|
||||||
|
MAIL_PORT=25
|
||||||
|
MAIL_USERNAME=null
|
||||||
|
MAIL_PASSWORD=null
|
||||||
|
MAIL_ENCRYPTION=null
|
||||||
|
MAIL_FROM_ADDRESS="ictadmin.m21@gov.tt"
|
||||||
|
MAIL_FROM_NAME="MYDNS Teams Directory"
|
||||||
|
|
||||||
|
AWS_ACCESS_KEY_ID=
|
||||||
|
AWS_SECRET_ACCESS_KEY=
|
||||||
|
AWS_DEFAULT_REGION=us-east-1
|
||||||
|
AWS_BUCKET=
|
||||||
|
|
||||||
|
PUSHER_APP_ID=
|
||||||
|
PUSHER_APP_KEY=
|
||||||
|
PUSHER_APP_SECRET=
|
||||||
|
PUSHER_APP_CLUSTER=mt1
|
||||||
|
|
||||||
|
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
|
||||||
|
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
|
||||||
|
|
||||||
|
LDAP_LOGGING=true
|
||||||
|
LDAP_CONNECTION=default
|
||||||
|
LDAP_CONNECTIONS=default
|
||||||
|
|
||||||
|
LDAP_DEFAULT_HOSTS=172.16.21.161
|
||||||
|
LDAP_DEFAULT_USERNAME=m21\LDAP_SRV.m21
|
||||||
|
LDAP_DEFAULT_PASSWORD=Kills99%Germs?
|
||||||
|
LDAP_DEFAULT_PORT=389
|
||||||
|
LDAP_DEFAULT_BASE_DN="dc=m21,dc=gov, dc=local"
|
||||||
|
LDAP_DEFAULT_TIMEOUT=5
|
||||||
|
LDAP_DEFAULT_SSL=false
|
||||||
|
LDAP_DEFAULT_TLS=false
|
||||||
|
|
||||||
|
|
||||||
|
SESSION_DRIVER=database
|
||||||
3
CHANGELOG.md
Executable file
3
CHANGELOG.md
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
## [1.0.0] - 2024-10-07
|
||||||
|
|
||||||
|
- Final release of Teams V3
|
||||||
|
|
@ -24,7 +24,10 @@ class Kernel extends ConsoleKernel
|
||||||
*/
|
*/
|
||||||
protected function schedule(Schedule $schedule)
|
protected function schedule(Schedule $schedule)
|
||||||
{
|
{
|
||||||
// $schedule->command('inspire')->hourly();
|
$schedule->call(function () {
|
||||||
|
Artisan::call('ldap:import user -n');
|
||||||
|
DB::table('users')->where('description', '=', 'Test Account')->delete();
|
||||||
|
})->twiceDaily(1, 13);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
7
app/Http/Controllers/PBXController.php
Normal file → Executable file
7
app/Http/Controllers/PBXController.php
Normal file → Executable file
|
|
@ -39,6 +39,7 @@ class PBXController extends Controller
|
||||||
|
|
||||||
$pins = PBXPin::where('name', 'LIKE', '%'.$criteria.'%')
|
$pins = PBXPin::where('name', 'LIKE', '%'.$criteria.'%')
|
||||||
->orWhere('pin', '=', $criteria)
|
->orWhere('pin', '=', $criteria)
|
||||||
|
->orWhere('email', 'LIKE', '%'.$criteria.'%')
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
$curr_user = $request->session()->get('credentials');
|
$curr_user = $request->session()->get('credentials');
|
||||||
|
|
@ -84,8 +85,8 @@ class PBXController extends Controller
|
||||||
|
|
||||||
$mailData = $pbx;
|
$mailData = $pbx;
|
||||||
|
|
||||||
Mail::to('amirah.ali@gov.tt')->send(new NotifyUser($mailData));
|
Mail::to($pbx->email)->send(new NotifyUser($mailData));
|
||||||
Mail::to('amirah.ali@gov.tt')->send(new NotifyAdmin($mailData));
|
Mail::to('servicedesk.mydns@gov.tt')->send(new NotifyAdmin($mailData));
|
||||||
|
|
||||||
return redirect()->route('pbx');
|
return redirect()->route('pbx');
|
||||||
}
|
}
|
||||||
|
|
@ -136,7 +137,7 @@ class PBXController extends Controller
|
||||||
$pin = DB::table('pbx_pin')->where('id', $id)->delete();
|
$pin = DB::table('pbx_pin')->where('id', $id)->delete();
|
||||||
|
|
||||||
$mailData = $old_pin;
|
$mailData = $old_pin;
|
||||||
Mail::to('amirah.ali@gov.tt')->send(new PinDisabled($mailData));
|
Mail::to('servicedesk.mydns@gov.tt')->send(new PinDisabled($mailData));
|
||||||
|
|
||||||
return redirect()->route('pbx');
|
return redirect()->route('pbx');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class SuperAdmin
|
||||||
public function handle(Request $request, Closure $next)
|
public function handle(Request $request, Closure $next)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (Auth::user()->email === 'AgardB@gov.tt' || Auth::user()->email === 'Shaad.Sadoo@gov.tt' || Auth::user()->email === 'Amirah.Ali@gov.tt'){
|
if (Auth::user()->email === 'AgardB@gov.tt' || Auth::user()->email === 'Shaad.Sadoo@gov.tt' || Auth::user()->email === 'Amirah.Ali@gov.tt' || Auth::user()->email === 'Josiah.Williams@gov.tt' || Auth::user()->email === 'Joshua.Yearwood@gov.tt' || Auth::user()->email === 'Vijai.Cassie@gov.tt' || Auth::user()->email === 'chantelle.pierre@gov.tt' || Auth::user()->email === 'Andre.Friday@gov.tt'){
|
||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
// if (Auth::user()->email === 'AgardB@gov.tt' || Auth::user()->email === 'Shaad.Sadoo@gov.tt'){
|
// if (Auth::user()->email === 'AgardB@gov.tt' || Auth::user()->email === 'Shaad.Sadoo@gov.tt'){
|
||||||
|
|
|
||||||
0
app/Mail/NotifyAdmin.php
Normal file → Executable file
0
app/Mail/NotifyAdmin.php
Normal file → Executable file
0
app/Mail/NotifyUser.php
Normal file → Executable file
0
app/Mail/NotifyUser.php
Normal file → Executable file
0
app/Mail/PinDisabled.php
Normal file → Executable file
0
app/Mail/PinDisabled.php
Normal file → Executable file
0
app/Models/PBXPin.php
Normal file → Executable file
0
app/Models/PBXPin.php
Normal file → Executable file
0
database/migrations/2014_10_12_000000_create_users_table.php
Normal file → Executable file
0
database/migrations/2014_10_12_000000_create_users_table.php
Normal file → Executable file
0
database/migrations/2023_05_14_195726_create_directory_table.php
Normal file → Executable file
0
database/migrations/2023_05_14_195726_create_directory_table.php
Normal file → Executable file
0
database/migrations/2023_05_16_163823_add_ldap_columns_to_users_table.php
Normal file → Executable file
0
database/migrations/2023_05_16_163823_add_ldap_columns_to_users_table.php
Normal file → Executable file
0
database/migrations/2023_05_25_155432_expiredpins.php
Normal file → Executable file
0
database/migrations/2023_05_25_155432_expiredpins.php
Normal file → Executable file
0
public/assets/unauthorized.png
Normal file → Executable file
0
public/assets/unauthorized.png
Normal file → Executable file
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
2
public/css/admin-employees.css
vendored
2
public/css/admin-employees.css
vendored
|
|
@ -112,7 +112,7 @@ table {
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
min-width: 90%;
|
min-width: 90%;
|
||||||
max-width: 90%;
|
max-width: 90%;
|
||||||
font-size: 15px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table tr th,
|
table tr th,
|
||||||
|
|
|
||||||
2
public/css/employees.css
vendored
2
public/css/employees.css
vendored
|
|
@ -164,7 +164,7 @@ body {
|
||||||
grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
|
||||||
}
|
}
|
||||||
.card {
|
.card {
|
||||||
min-width: 23rem;
|
min-width: 16rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (min-width: 1280px) and (min-height: 913px) {
|
@media screen and (min-width: 1280px) and (min-height: 913px) {
|
||||||
|
|
|
||||||
2
public/css/pbx.css
vendored
2
public/css/pbx.css
vendored
|
|
@ -309,7 +309,7 @@ svg.bi.bi-dash-circle {
|
||||||
}
|
}
|
||||||
@media screen and (min-width: 1025px){
|
@media screen and (min-width: 1025px){
|
||||||
.card {
|
.card {
|
||||||
min-width: 22rem;
|
min-width: 20rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
0
public/css/unauthorizedAccess.css
vendored
Normal file → Executable file
0
public/css/unauthorizedAccess.css
vendored
Normal file → Executable file
|
|
@ -105,7 +105,7 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{$user->name}}</td>
|
<td>{{$user->name}}</td>
|
||||||
<td>{{$user->email}}</td>
|
<td><a href="mailto:{{$user->email}}">{{$user->email}}</a></td>
|
||||||
<td>{{$user->ext}}</td>
|
<td>{{$user->ext}}</td>
|
||||||
<td>{{$user->position}}</td>
|
<td>{{$user->position}}</td>
|
||||||
<td>{{$user->department}}</td>
|
<td>{{$user->department}}</td>
|
||||||
|
|
|
||||||
0
resources/views/Admin/unauthorized.blade.php
Normal file → Executable file
0
resources/views/Admin/unauthorized.blade.php
Normal file → Executable file
0
resources/views/Components/confirm.blade.php
Normal file → Executable file
0
resources/views/Components/confirm.blade.php
Normal file → Executable file
0
resources/views/Mail/admin-mail.blade.php
Normal file → Executable file
0
resources/views/Mail/admin-mail.blade.php
Normal file → Executable file
0
resources/views/Mail/disabled-pin.blade.php
Normal file → Executable file
0
resources/views/Mail/disabled-pin.blade.php
Normal file → Executable file
8
resources/views/Mail/user-mail.blade.php
Normal file → Executable file
8
resources/views/Mail/user-mail.blade.php
Normal file → Executable file
|
|
@ -6,11 +6,11 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<p> Good day Admin,</p><br>
|
<p> Good day Admin,</p><br>
|
||||||
<p>This email serves to notify you that a PBX pin has been disabled. Please see below for the necessary details to be removed into the PBX system:</p><br>
|
<p>This email serves to notify you that a PBX pin has been assigned. Please see below for the necessary details to be added into the PBX system:</p><br>
|
||||||
|
|
||||||
<i><b><p>Owner: {{ $mailData['pin']->owner }}</p></b></i>
|
<i><b><p>Owner: {{ $mailData->owner }}</p></b></i>
|
||||||
<i><b><p >Email: {{ $mailData['email']}}</p></b></i>
|
<i><b><p >Email: {{ $mailData->email}}</p></b></i>
|
||||||
<i><b><p >PBX Pin: {{ $mailData['pin']->pin}}</p></b></i><br>
|
<i><b><p >PBX Pin: {{ $mailData->pin}}</p></b></i><br>
|
||||||
<p>Best Wishes,</p>
|
<p>Best Wishes,</p>
|
||||||
<p>MYDNS Teams Directory Services</p>
|
<p>MYDNS Teams Directory Services</p>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
@if (is_null($user->email))
|
@if (is_null($user->email))
|
||||||
p class="card-details"><b>Email:</b> N/A</p>
|
p class="card-details"><b>Email:</b> N/A</p>
|
||||||
@else
|
@else
|
||||||
<p class="card-details"><b>Email:</b> {{$user->email}}</p>
|
<p class="card-details"><b>Email:</b> <a href="mailto:{{$user->email}}">{{$user->email}}</a></p>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (is_null($user->ext))
|
@if (is_null($user->ext))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue