
Quote from lolo on June 10, 2023, 5:07 pmЯ пытаюсь создать управление пользователями сайта, я загрузил в корень два файла
I am trying to create a site user management, I have uploaded two files to the root
config.php//-------------Database alias section-------------------------------------------------------------- //MySQL sample $dbAlias[1]="db2"; $dbNames[1]="sibprogsistem0_testneo"; $dbServerNames[1]="localhost"; $dbUserNames[1]="046581659_testne"; $dbPasswords[1]="qs5wcqmvC4Yd_5U"; //Connection string through a port "sqlsrv:Server=localhost,3306;Database=sibprogsistem0_testneo"; //-------------SQL queries section------------------------------------------------------------------ //On VisualNEO Web use an alias for each SQL sentence and assign here the real query. //Use the ? character where you want to use a parameter from your Neo Script code. //$sqlMaxUserLevel stores maximum logged-in user level allowed to execute a query. //User level 0 (admin) is allowed to execute any query. //User level -1 indicates no user needs to be loged-in.neofunctions.php
//Users database configuration $usersDb="sibprogsistem0_testneo"; //Only if Users DB is MySQL $usersDbServerName="localhost"; $usersDbUserName="046581659_testne"; $usersDbPassword="qs5wcqmvC4Yd_5U"; //Only if Users DB is SQL Server or ODBCпри первом обращении в БД создается таблица neousers - значит скрипт подключается
the first time the database is accessed, the neousers table is created, which means the script is connectedНа сколько я понимаю, neofunctions.php предназначен для работы с пользователями. Для создания рользователя я использую команду :
As far as I understand, neofunctions.php is designed to work with users. To create a role-player I use the command:neoPhpUserInsert "Vladimir" "sibprogsistem@mail.ru" "1234" 0 "UserAdd"
Теперь скрипт должен создать пользователя и вернуть в подпрограмму "UserAdd" ответ, но ничего не происходит..
Now the script should create a user and return a response to the "UserAdd" subroutine, but nothing happens..
Я пытаюсь создать управление пользователями сайта, я загрузил в корень два файла
I am trying to create a site user management, I have uploaded two files to the root
config.php
//-------------Database alias section-------------------------------------------------------------- //MySQL sample $dbAlias[1]="db2"; $dbNames[1]="sibprogsistem0_testneo"; $dbServerNames[1]="localhost"; $dbUserNames[1]="046581659_testne"; $dbPasswords[1]="qs5wcqmvC4Yd_5U"; //Connection string through a port "sqlsrv:Server=localhost,3306;Database=sibprogsistem0_testneo"; //-------------SQL queries section------------------------------------------------------------------ //On VisualNEO Web use an alias for each SQL sentence and assign here the real query. //Use the ? character where you want to use a parameter from your Neo Script code. //$sqlMaxUserLevel stores maximum logged-in user level allowed to execute a query. //User level 0 (admin) is allowed to execute any query. //User level -1 indicates no user needs to be loged-in.
neofunctions.php
//Users database configuration $usersDb="sibprogsistem0_testneo"; //Only if Users DB is MySQL $usersDbServerName="localhost"; $usersDbUserName="046581659_testne"; $usersDbPassword="qs5wcqmvC4Yd_5U"; //Only if Users DB is SQL Server or ODBC
при первом обращении в БД создается таблица neousers - значит скрипт подключается
the first time the database is accessed, the neousers table is created, which means the script is connected
На сколько я понимаю, neofunctions.php предназначен для работы с пользователями. Для создания рользователя я использую команду :
As far as I understand, neofunctions.php is designed to work with users. To create a role-player I use the command:
neoPhpUserInsert "Vladimir" "sibprogsistem@mail.ru" "1234" 0 "UserAdd"
Теперь скрипт должен создать пользователя и вернуть в подпрограмму "UserAdd" ответ, но ничего не происходит..
Now the script should create a user and return a response to the "UserAdd" subroutine, but nothing happens..

Quote from lolo on June 12, 2023, 4:15 pmУже несколько раз переписывается, все повторяется, к БД подключается, таблица neousers по умолчанию
функция neoPhpUserInsert пользователя не создаетсоздаю пользователя в таблице сам, а потом пытаюсь авторизоваться
neoPhpUserLogin "[LoginUserAuthorization]" "[PasswordUserAuthorization]" "UserLogin"
подпрограммаIt has already been rewritten several times, everything is repeated, it is connected to the database, the neousers table is by default
function neoPhpUserInsert does not create a userI create a user in the table myself, and then I try to log in
neoPhpUserLogin "[LoginUserAuthorization]" "[PasswordUserAuthorization]" "UserLogin"
subroutineCreateEmptyObject [userinfo]
ParseJSON "[userData]" [userinfo]If [userinfo.error] != ""
ShowObject "Paragraph1" "" 0
Else
jsAlert "[userinfo.username]"
EndIf
получает постой json
gets hold json
Уже несколько раз переписывается, все повторяется, к БД подключается, таблица neousers по умолчанию
функция neoPhpUserInsert пользователя не создает
создаю пользователя в таблице сам, а потом пытаюсь авторизоваться
neoPhpUserLogin "[LoginUserAuthorization]" "[PasswordUserAuthorization]" "UserLogin"
подпрограмма
It has already been rewritten several times, everything is repeated, it is connected to the database, the neousers table is by default
function neoPhpUserInsert does not create a user
I create a user in the table myself, and then I try to log in
neoPhpUserLogin "[LoginUserAuthorization]" "[PasswordUserAuthorization]" "UserLogin"
subroutine
CreateEmptyObject [userinfo]
ParseJSON "[userData]" [userinfo]
If [userinfo.error] != ""
ShowObject "Paragraph1" "" 0
Else
jsAlert "[userinfo.username]"
EndIf
получает постой json
gets hold json

Quote from luishp on June 13, 2023, 4:51 pm@lolo have you checked this lines in config.php file?
//Allow self registration as user $allowSelfRegistration=true; $selfRegistrationLevel=3;If $allowSelfRegistration is not set to true, only a logged-in admin can create new users.
Regards.
@lolo have you checked this lines in config.php file?
//Allow self registration as user $allowSelfRegistration=true; $selfRegistrationLevel=3;
If $allowSelfRegistration is not set to true, only a logged-in admin can create new users.
Regards.

Quote from lolo on June 16, 2023, 7:32 pm@luishp
Спасибо, разобрался, проблема была в моей глупости )))
Thank you, I figured it out, the problem was in my stupidity)))
@luishp
Спасибо, разобрался, проблема была в моей глупости )))
Thank you, I figured it out, the problem was in my stupidity)))