Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
727cd73525 |
@ -6,7 +6,6 @@
|
||||
use App\Providers\RouteServiceProvider;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Modules\Usermanager\Entities\User;
|
||||
use Modules\Usermanager\Http\Requests\LoginRequest;
|
||||
|
||||
class AuthenticatedSessionController extends Controller
|
||||
@ -29,7 +28,6 @@
|
||||
|
||||
public function storeUsermanager(Request $request)
|
||||
{
|
||||
|
||||
$userArray = [];
|
||||
$id = $request->email;
|
||||
$passwd = $request->password;
|
||||
@ -40,27 +38,20 @@
|
||||
|
||||
$userData = verify_user($id, $passwd, $SERVER_ADDR, $IPUserManager, $portUserManager, $appId);
|
||||
|
||||
|
||||
if (strlen($userData) > 1) {
|
||||
$userRawArray = explode("\t", $userData);
|
||||
|
||||
foreach ($userRawArray as $rkey => $rval) {
|
||||
|
||||
[$key, $val] = explode('=', $rval);
|
||||
$userArray[0][$key] = $val;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$user = User::where('email', '=', $request->email)->first();
|
||||
$user = User::where('user_id', '=', $request->email)->first();
|
||||
|
||||
if (!$user) {
|
||||
$user = User::create([
|
||||
'name' => $userArray[0]['NAMA_USER'],
|
||||
'user_id' => $userArray[0]['KD_USER'],
|
||||
'email' => $request->email,
|
||||
'password' => $request->password
|
||||
|
||||
|
||||
'user_id' => $userArray[0]['KD_USER']
|
||||
]);
|
||||
|
||||
switch ($userArray[0]['KD_GROUP']) {
|
||||
@ -121,4 +112,4 @@
|
||||
|
||||
return redirect('/');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,69 +0,0 @@
|
||||
<x-auth-layout>
|
||||
|
||||
<!--begin::Form-->
|
||||
<form class="form w-100" novalidate="novalidate" id="kt_sign_in_form" data-kt-redirect-url="/" action="login">
|
||||
@csrf
|
||||
<!--begin::Heading-->
|
||||
<div class="text-center mb-11">
|
||||
<!--begin::Title-->
|
||||
<h1 class="text-dark fw-bolder mb-3">
|
||||
Sign In
|
||||
</h1>
|
||||
<!--end::Title-->
|
||||
|
||||
<!--begin::Subtitle-->
|
||||
<div class="text-gray-500 fw-semibold fs-6">
|
||||
Your Social Campaigns
|
||||
</div>
|
||||
<!--end::Subtitle--->
|
||||
</div>
|
||||
<!--begin::Heading-->
|
||||
|
||||
<!--begin::Input group--->
|
||||
<div class="fv-row mb-8">
|
||||
<!--begin::Email-->
|
||||
<input type="text" placeholder="User ID" name="email" autocomplete="off" class="form-control bg-transparent" value=""/>
|
||||
<!--end::Email-->
|
||||
</div>
|
||||
|
||||
<!--end::Input group--->
|
||||
<div class="fv-row mb-3">
|
||||
<!--begin::Password-->
|
||||
<input type="password" placeholder="Password" name="password" autocomplete="off" class="form-control bg-transparent" value=""/>
|
||||
<!--end::Password-->
|
||||
</div>
|
||||
<!--end::Input group--->
|
||||
|
||||
<!--begin::Wrapper-->
|
||||
<div class="d-flex flex-stack flex-wrap gap-3 fs-base fw-semibold mb-8">
|
||||
<div></div>
|
||||
|
||||
<!--begin::Link-->
|
||||
<a href="/forgot-password" class="link-primary">
|
||||
Forgot Password ?
|
||||
</a>
|
||||
<!--end::Link-->
|
||||
</div>
|
||||
<!--end::Wrapper-->
|
||||
|
||||
<!--begin::Submit button-->
|
||||
<div class="d-grid mb-10">
|
||||
<button type="submit" id="kt_sign_in_submit" class="btn btn-primary">
|
||||
@include('partials/general/_button-indicator', ['label' => 'Sign In'])
|
||||
</button>
|
||||
</div>
|
||||
<!--end::Submit button-->
|
||||
|
||||
<!--begin::Sign up-->
|
||||
<div class="text-gray-500 text-center fw-semibold fs-6">
|
||||
Not a Member yet?
|
||||
|
||||
<a href="/register" class="link-primary">
|
||||
Sign up
|
||||
</a>
|
||||
</div>
|
||||
<!--end::Sign up-->
|
||||
</form>
|
||||
<!--end::Form-->
|
||||
|
||||
</x-auth-layout>
|
@ -13,45 +13,23 @@
|
||||
|
||||
<!--begin::Subtitle-->
|
||||
<div class="text-gray-500 fw-semibold fs-6">
|
||||
Aplikasi Konfirmasi Bank
|
||||
Your Social Campaigns
|
||||
</div>
|
||||
<!--end::Subtitle--->
|
||||
</div>
|
||||
<!--begin::Heading-->
|
||||
|
||||
<!--begin::Login options-->
|
||||
<div class="row g-3 mb-9">
|
||||
<!--begin::Col-->
|
||||
<div class="col-md-12">
|
||||
<img class="d-none d-lg-block mx-auto w-150px w-md-50 w-xl-150px mb-10 mb-lg-10" src="{{ image('logos/logo_agi.png') }}" alt=""/>
|
||||
<!--begin::Google link--->
|
||||
{{-- <a href="#" class="btn btn-flex btn-outline btn-text-gray-700 btn-active-color-primary bg-state-light flex-center text-nowrap w-100">
|
||||
<img alt="Logo" src="{{ image('svg/brand-logos/google-icon.svg') }}" class="h-15px me-3"/>
|
||||
Sign in with Google
|
||||
</a> --}}
|
||||
<!--end::Google link--->
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
|
||||
<!--begin::Col-->
|
||||
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Login options-->
|
||||
|
||||
<!--end::Separator-->
|
||||
|
||||
<!--begin::Input group--->
|
||||
<div class="fv-row mb-8">
|
||||
<!--begin::Email-->
|
||||
<input type="text" placeholder="Email" name="email" autocomplete="off" class="form-control bg-transparent" value="demo@demo.com"/>
|
||||
<input type="text" placeholder="User ID" name="email" autocomplete="off" class="form-control bg-transparent" value=""/>
|
||||
<!--end::Email-->
|
||||
</div>
|
||||
|
||||
<!--end::Input group--->
|
||||
<div class="fv-row mb-3">
|
||||
<!--begin::Password-->
|
||||
<input type="password" placeholder="Password" name="password" autocomplete="off" class="form-control bg-transparent" value="demo"/>
|
||||
<input type="password" placeholder="Password" name="password" autocomplete="off" class="form-control bg-transparent" value=""/>
|
||||
<!--end::Password-->
|
||||
</div>
|
||||
<!--end::Input group--->
|
||||
@ -61,9 +39,9 @@
|
||||
<div></div>
|
||||
|
||||
<!--begin::Link-->
|
||||
{{-- <a href="/forgot-password" class="link-primary">
|
||||
<a href="/forgot-password" class="link-primary">
|
||||
Forgot Password ?
|
||||
</a> --}}
|
||||
</a>
|
||||
<!--end::Link-->
|
||||
</div>
|
||||
<!--end::Wrapper-->
|
||||
@ -77,13 +55,13 @@
|
||||
<!--end::Submit button-->
|
||||
|
||||
<!--begin::Sign up-->
|
||||
{{-- <div class="text-gray-500 text-center fw-semibold fs-6">
|
||||
<div class="text-gray-500 text-center fw-semibold fs-6">
|
||||
Not a Member yet?
|
||||
|
||||
<a href="/register" class="link-primary">
|
||||
Sign up
|
||||
</a>
|
||||
</div> --}}
|
||||
</div>
|
||||
<!--end::Sign up-->
|
||||
</form>
|
||||
<!--end::Form-->
|
||||
|
@ -5,6 +5,12 @@
|
||||
@csrf
|
||||
<!--begin::Heading-->
|
||||
<div class="text-center mb-11">
|
||||
<!--begin::Logo-->
|
||||
<a href="/" class="mb-12">
|
||||
<img alt="Logo" src="{{ image('logos/logo_agi.png') }}" class="h-60px h-lg-75px"/>
|
||||
</a>
|
||||
<!--end::Logo-->
|
||||
|
||||
<!--begin::Title-->
|
||||
<h1 class="text-dark fw-bolder mb-3">
|
||||
Sign In
|
||||
@ -13,7 +19,7 @@
|
||||
|
||||
<!--begin::Subtitle-->
|
||||
<div class="text-gray-500 fw-semibold fs-6">
|
||||
Aplikasi Konfirmasi Bank
|
||||
Your Social Campaigns
|
||||
</div>
|
||||
<!--end::Subtitle--->
|
||||
</div>
|
||||
@ -22,23 +28,34 @@
|
||||
<!--begin::Login options-->
|
||||
<div class="row g-3 mb-9">
|
||||
<!--begin::Col-->
|
||||
<div class="col-md-12">
|
||||
<img class="d-none d-lg-block mx-auto w-150px w-md-50 w-xl-150px mb-10 mb-lg-10" src="{{ image('logos/logo_agi.png') }}" alt=""/>
|
||||
<div class="col-md-6">
|
||||
<!--begin::Google link--->
|
||||
{{-- <a href="#" class="btn btn-flex btn-outline btn-text-gray-700 btn-active-color-primary bg-state-light flex-center text-nowrap w-100">
|
||||
<a href="#" class="btn btn-flex btn-outline btn-text-gray-700 btn-active-color-primary bg-state-light flex-center text-nowrap w-100">
|
||||
<img alt="Logo" src="{{ image('svg/brand-logos/google-icon.svg') }}" class="h-15px me-3"/>
|
||||
Sign in with Google
|
||||
</a> --}}
|
||||
</a>
|
||||
<!--end::Google link--->
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
|
||||
<!--begin::Col-->
|
||||
|
||||
<div class="col-md-6">
|
||||
<!--begin::Google link--->
|
||||
<a href="#" class="btn btn-flex btn-outline btn-text-gray-700 btn-active-color-primary bg-state-light flex-center text-nowrap w-100">
|
||||
<img alt="Logo" src="{{ image('svg/brand-logos/apple-black.svg') }}" class="theme-light-show h-15px me-3"/>
|
||||
<img alt="Logo" src="{{ image('svg/brand-logos/apple-black-dark.svg') }}" class="theme-dark-show h-15px me-3"/>
|
||||
Sign in with Apple
|
||||
</a>
|
||||
<!--end::Google link--->
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Login options-->
|
||||
|
||||
<!--begin::Separator-->
|
||||
<div class="separator separator-content my-14">
|
||||
<span class="w-125px text-gray-500 fw-semibold fs-7">Or with email</span>
|
||||
</div>
|
||||
<!--end::Separator-->
|
||||
|
||||
<!--begin::Input group--->
|
||||
@ -61,9 +78,9 @@
|
||||
<div></div>
|
||||
|
||||
<!--begin::Link-->
|
||||
{{-- <a href="/forgot-password" class="link-primary">
|
||||
<a href="/forgot-password" class="link-primary">
|
||||
Forgot Password ?
|
||||
</a> --}}
|
||||
</a>
|
||||
<!--end::Link-->
|
||||
</div>
|
||||
<!--end::Wrapper-->
|
||||
@ -77,13 +94,13 @@
|
||||
<!--end::Submit button-->
|
||||
|
||||
<!--begin::Sign up-->
|
||||
{{-- <div class="text-gray-500 text-center fw-semibold fs-6">
|
||||
<div class="text-gray-500 text-center fw-semibold fs-6">
|
||||
Not a Member yet?
|
||||
|
||||
<a href="/register" class="link-primary">
|
||||
Sign up
|
||||
</a>
|
||||
</div> --}}
|
||||
</div>
|
||||
<!--end::Sign up-->
|
||||
</form>
|
||||
<!--end::Form-->
|
||||
|
@ -6,8 +6,4 @@
|
||||
class="kt_edit_form btn btn-icon btn-bg-light btn-active-light-primary btn-sm me-1">
|
||||
{!! getIcon("pencil", "fs-1 text-info","duotune") !!}
|
||||
</a>
|
||||
|
||||
{!! Form::open(['method' => 'DELETE','route' => [$route[0].'.'.$route[1].'.destroy', $model->id],'class'=>'']) !!}
|
||||
{{ Form::button(getIcon("trash", "fs-1 text-danger","duotune"), ['type' => 'submit', 'class' => 'delete btn btn-icon btn-bg-light btn-active-light-danger btn-sm'] ) }}
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
|
@ -58,7 +58,35 @@
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
<div class="mb-7">
|
||||
<!--begin::Input group-->
|
||||
<div class="d-flex flex-column mb-8 fv-row">
|
||||
<!--begin::Label-->
|
||||
<label class="d-flex align-items-center fs-6 fw-semibold mb-2" for="directorat_id">
|
||||
<span class="required">Directorat</span>
|
||||
<span class="ms-1" data-bs-toggle="tooltip" title="Specify a target name for future usage and reference"></span>
|
||||
</label>
|
||||
<!--end::Label-->
|
||||
<select class="form-select" name="directorat_id" id="directorat_id">
|
||||
<option>Select Directorat</option>
|
||||
</select>
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
<!--begin::Input group-->
|
||||
<div class="d-flex flex-column mb-8 fv-row">
|
||||
<!--begin::Label-->
|
||||
<label class="d-flex align-items-center fs-6 fw-semibold mb-2" for="sub_directorat_id">
|
||||
<span class="required">Sub Directorat</span>
|
||||
<span class="ms-1" data-bs-toggle="tooltip" title="Specify a target name for future usage and reference"></span>
|
||||
</label>
|
||||
<!--end::Label-->
|
||||
<select class="form-select" name="sub_directorat_id" id="sub_directorat_id">
|
||||
<option>Select Sub Directorat</option>
|
||||
</select>
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
|
||||
|
||||
<div class="mb-7" style="display: none">
|
||||
<!--begin::Label-->
|
||||
<label class="required fw-bold fs-6 mb-5">Role</label>
|
||||
<!--end::Label-->
|
||||
|
@ -110,7 +110,12 @@
|
||||
var _data = JSON.parse(data);
|
||||
toastr.success(_data.message);
|
||||
form[0].reset();
|
||||
LaravelDataTables["{{$route[0].'-'.$route[1]}}-table"].ajax.reload();
|
||||
Swal.fire({
|
||||
title: 'Success!',
|
||||
text: "Data berhasil di hapus, menunggu Approval",
|
||||
icon: 'success',
|
||||
confirmButtonText: 'Ok'
|
||||
});
|
||||
$('#kt_modal_user_users').modal('hide');
|
||||
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user