Problem with simple 1 user login form

Hi support,

I followed the manual here:

for making a simple login form here:
https://evira.be/steven/login.php

I tried to follow it to the letter, but there is a small difference between the manual and the program in the “handler” field, so I used the server connect form properties instead.

The login page is not working, it is not doing anything at all.
It is not redirecting on success and not throwing error on fail.

In the manual the server connect form appears above the form group, but in the program it is part of the properties.

What am I missing?

Hello,
The handler menu was just replaced with a “Make server connect form” button - use it instead, it is identical.

Also for the login issue please check this and see what is the error returned: https://github.com/Wappler/docs/wiki/Debugging-Problems

throws this error, but I don’t understand it…
image

When you click on PHP file shown there you will see the error message - just like in the tutorial i sent.

It says username is required, but in my form the id and the name of the field are called exactly that.

  1. {code: 0, file: “C:\Inetpub\vhosts\evira.be\httpdocs\dmxConnectLib\dmxConnect.php”, line: 115,…}

  2. code: 0

  3. file: “C:\Inetpub\vhosts\evira.be\httpdocs\dmxConnectLib\dmxConnect.php”

  4. line: 115

  5. message: “Option “username” is required!”

  6. trace: “#0 C:\Inetpub\vhosts\evira.be\httpdocs\dmxConnectLib\lib\auth\SingleProvider.php(13): option_require(Object(stdClass), ‘username’)↵#1 C:\Inetpub\vhosts\evira.be\httpdocs\dmxConnectLib\lib\auth\Provider.php(53): lib\auth\SingleProvider->__construct(Object(lib\App), Object(stdClass))↵#2 C:\Inetpub\vhosts\evira.be\httpdocs\dmxConnectLib\modules\auth.php(11): lib\auth\Provider->__construct(Object(lib\App), Object(stdClass), ‘security1’)↵#3 C:\Inetpub\vhosts\evira.be\httpdocs\dmxConnectLib\lib\App.php(159): modules\auth->provider(Object(stdClass), ‘security1’)↵#4 C:\Inetpub\vhosts\evira.be\httpdocs\dmxConnectLib\lib\App.php(128): lib\App->execSteps(Object(stdClass))↵#5 C:\Inetpub\vhosts\evira.be\httpdocs\dmxConnectLib\lib\App.php(98): lib\App->execSteps(Array)↵#6 C:\Inetpub\vhosts\evira.be\httpdocs\dmxConnectLib\lib\App.php(71): lib\App->exec(Object(stdClass))↵#7 C:\Inetpub\vhosts\evira.be\httpdocs\dmxConnect\api\security\login.php(8): lib\App->define(Object(stdClass))↵#8 {main}”

Name

The error comes from the server action, somewhere the username field is not properly selected.

But it is there?
image

I don’t see such error on your page. I only see an error about wrong login details.

ok, got it to work
the credentials were missing in the security provider properties.

Thanks for help!

1 Like