Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sarun Mungthanya
SpnPatch-Laravel
Commits
6f9687de
Commit
6f9687de
authored
Nov 13, 2024
by
Chanon.u
Browse files
Fix issue update password - config manual response
parent
1b307f70
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Livewire/Pages/User/ConfigManualResponse.php
View file @
6f9687de
...
@@ -43,17 +43,10 @@ class ConfigManualResponse extends Component
...
@@ -43,17 +43,10 @@ class ConfigManualResponse extends Component
$userConnectSpn
=
UsersConnectSpn
::
where
(
'uid'
,
$this
->
editUserId
)
->
first
();
$userConnectSpn
=
UsersConnectSpn
::
where
(
'uid'
,
$this
->
editUserId
)
->
first
();
if
(
$userConnectSpn
){
if
(
$userConnectSpn
){
if
(
empty
(
$this
->
passwordSPN
)){
if
(
!
empty
(
$this
->
passwordSPN
)){
$this
->
dispatchBrowserEvent
(
'open-modal'
,
[
$userConnectSpn
->
password
=
password_hash
(
$this
->
passwordSPN
,
PASSWORD_BCRYPT
);
'name'
=>
'alert-modal'
,
'message'
=>
'Password must not be empty!'
,
'status'
=>
'warning'
]);
return
;
}
}
$userConnectSpn
->
username
=
$this
->
usernameSPN
;
$userConnectSpn
->
username
=
$this
->
usernameSPN
;
$userConnectSpn
->
password
=
password_hash
(
$this
->
passwordSPN
,
PASSWORD_BCRYPT
);
$userConnectSpn
->
link
=
$this
->
linkSPN
;
$userConnectSpn
->
link
=
$this
->
linkSPN
;
$userConnectSpn
->
save
();
$userConnectSpn
->
save
();
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment