update change password
This commit is contained in:
@@ -174,5 +174,3 @@
|
||||
<button type="submit" class="btn btn-outline-primary">Lưu dữ liệu</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<p>Xin chào,</p>
|
||||
<p>Mật khẩu VPS <strong>{{ $vmName }}</strong> đã được đặt lại thành công.</p>
|
||||
<p>Mật khẩu mới: <code>{{ $newPassword }}</code></p>
|
||||
<p>Vui lòng đăng nhập và đổi lại mật khẩu theo ý bạn.</p>
|
||||
<p>Trân trọng,</p>
|
||||
@@ -41,7 +41,7 @@
|
||||
<span class="text-gray-600 font-medium">Password</span>
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="font-mono text-sm bg-gray-100 px-2 py-1 rounded"
|
||||
x-text="passwordVisible ? 'TGS@123' : '••••••••'">
|
||||
x-text="passwordVisible ? '' : '••••••••'">
|
||||
</span>
|
||||
<button type="button" @click="passwordVisible = !passwordVisible"
|
||||
class="text-blue-600 hover:text-blue-800" title="{{ __('Toggle password visibility') }}">
|
||||
|
||||
@@ -9,24 +9,31 @@
|
||||
</flux:text>
|
||||
</div>
|
||||
|
||||
<form x-data="{ submitting: false }" x-on:submit.prevent="if (submitting) return; submitting = true; $el.submit()" method="POST" action="{{ route('service.reset.vm.password') }}">
|
||||
<form x-data="{ submitting: false }" x-on:submit.prevent="if (submitting) return; submitting = true; $el.submit()"
|
||||
method="POST" action="{{ route('service.reset.vm.password') }}">
|
||||
@csrf
|
||||
<input type="hidden" name="product_id" value="{{ $invoice->vm_id }}">
|
||||
|
||||
<flux:field>
|
||||
<flux:label>{{ __('Mật khẩu cũ') }}</flux:label>
|
||||
<flux:input name="old_password" type="password" placeholder="{{ __('Nhập mật khẩu cũ') }}" required
|
||||
minlength="8" />
|
||||
</flux:field>
|
||||
<flux:field>
|
||||
<flux:label>{{ __('Mật khẩu mới') }}</flux:label>
|
||||
<flux:input name="new_password" type="password" placeholder="{{ __('Nhập mật khẩu mới') }}" required minlength="8" />
|
||||
<flux:description>{{ $isWindows ? __('Tài khoản: administrator') : __('Tài khoản: root') }}</flux:description>
|
||||
<flux:input name="new_password" type="password" placeholder="{{ __('Nhập mật khẩu mới') }}" required
|
||||
minlength="8" />
|
||||
<flux:description>{{ $isWindows ? __('Tài khoản: administrator') : __('Tài khoản: root') }}
|
||||
</flux:description>
|
||||
</flux:field>
|
||||
|
||||
<div class="flex gap-2 justify-end mt-6">
|
||||
<flux:modal.close>
|
||||
<flux:button variant="ghost">{{ __('Hủy') }}</flux:button>
|
||||
</flux:modal.close>
|
||||
<flux:button type="submit" variant="primary" color="orange" x-bind:disabled="submitting">{{ __('Đồng ý') }}</flux:button>
|
||||
<flux:button type="submit" variant="primary" color="orange" x-bind:disabled="submitting">
|
||||
{{ __('Đồng ý') }}</flux:button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</flux:modal>
|
||||
|
||||
|
||||
|
||||
@@ -45,8 +45,7 @@
|
||||
@include('frontend.service.partials.control-buttons.snapshot-button')
|
||||
@include('frontend.service.partials.control-buttons.reset-password-button')
|
||||
@include('frontend.service.partials.control-buttons.change-ip-button')
|
||||
@endif
|
||||
|
||||
@endif
|
||||
</div>
|
||||
|
||||
{{-- Notes Section --}}
|
||||
@@ -62,7 +61,7 @@
|
||||
'isWindows' => $isWindows,
|
||||
])
|
||||
@include('frontend.service.partials.change-ip-modal', ['invoice' => $invoice])
|
||||
@include('frontend.service.partials.change-remote-port-modal', ['invoice' => $invoice])
|
||||
@include('frontend.service.partials.change-remote-port-modal', ['invoice' => $invoice])
|
||||
@include('frontend.service.partials.renewal-modal', ['invoice' => $invoice])
|
||||
@endif
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user