Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
entrix
WoWSimpleRegistration
Commits
c0afd176
Commit
c0afd176
authored
Jul 28, 2020
by
Amin.MasterkinG
Browse files
SOAP registration update.
Run account set addon command after run create account command.
parent
2a9e3209
Changes
1
Hide whitespace changes
Inline
Side-by-side
application/include/user.php
View file @
c0afd176
...
...
@@ -165,6 +165,12 @@ class user
$command
=
str_replace
(
'{PASSWORD}'
,
$antiXss
->
xss_clean
(
$_POST
[
'password'
]),
$command
);
$command
=
str_replace
(
'{EMAIL}'
,
$antiXss
->
xss_clean
(
strtoupper
(
$_POST
[
'email'
])),
$command
);
if
(
RemoteCommandWithSOAP
(
$command
))
{
if
(
!
empty
(
get_config
(
'soap_asa_command'
)))
{
$command_addon
=
str_replace
(
'{USERNAME}'
,
$antiXss
->
xss_clean
(
strtoupper
(
$_POST
[
'username'
])),
get_config
(
'soap_asa_command'
));
$command_addon
=
str_replace
(
'{EXPANSION}'
,
get_config
(
'expansion'
),
$command_addon
);
RemoteCommandWithSOAP
(
$command_addon
);
}
database
::
$auth
->
update
(
'account'
,
[
'email'
=>
$antiXss
->
xss_clean
(
strtoupper
(
$_POST
[
'email'
]))
],
[
'username'
=>
Medoo
::
raw
(
'UPPER(:username)'
,
[
':username'
=>
$antiXss
->
xss_clean
(
strtoupper
(
$_POST
[
'username'
]))])]);
...
...
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