<div dir="ltr"><div>Wow. Thanks Benoît,<br></div>It's all the info I needed. =)<br><br><div>I attach a very basic example that exemplifies how to login in an Webform,</div><div>saving a username in the session, and jump to another webform, where he</div><div>greets the user.</div><div><br></div><div>For some it will be useful. ;)<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El jue., 23 may. 2019 a las 11:44, Benoît Minisini (<<a href="mailto:g4mba5@gmail.com" target="_blank">g4mba5@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le 23/05/2019 à 14:50, Matias De lellis a écrit :<br>
> Hi Benoît, everyone,<br>
> <br>
> I was trying to make a small configuration fronted for a pagekite [1] relay.<br>
> I use pagekite for tests, a while ago, but I need to make it more dynamic.<br>
> Basically I need to manage the users that connect to the relay. With this<br>
> commit [2] it's easy, but I want to do the fronted that manage it.<br>
> <br>
> Only need an CRUD with users, ports and secret key. It's easy .. No? ;)<br>
> <br>
> Well. The important thing is also that I need a simple login and control<br>
> the routes. If it is logged, show the main fronted (on /relays), and if not,<br>
> redirect to the login webform (on /login)<br>
> <br>
> Since this is a relatively new control, there are few examples (Practically<br>
> only those who are with the source code). and I do not find any that shows<br>
> how to redirect to another webform. :S<br>
> <br>
> In the original announcement[3], you said this:<br>
> <br>
>  > How to switch from one web form to another one is not designed yet. At<br>
>  > the moment, the url 'http://<server>/<root>/abcd' is supposed to display<br>
>  > the web form whose class name is 'abcd'. There is no way to have<br>
>  > different instances of the same web form.<br>
> <br>
> But I could not make it work.. :(<br>
> <br>
> Delving into the code, I found that basically you deleted it[4], but I <br>
> do not<br>
> see how to replace it. You can guide me in what is the alternative to<br>
> solve this.?<br>
> A single example with a webButton that redirects to another webform,<br>
> should be more than enough. :smiley:<br>
> <br>
> Of course, thank you very much ..<br>
> <br>
> Regards,<br>
> Matias<br>
> <br>
> ..and p.s: Congratulations for your new stage as a self-employed<br>
> company. =)<br>
> <br>
> [1]: <a href="https://pagekite.net/" rel="noreferrer" target="_blank">https://pagekite.net/</a><br>
> [2]: <br>
> <a href="https://github.com/pagekite/PyPagekite/commit/9b11980a43cbe9f0c4fc7f749188cb6266737600" rel="noreferrer" target="_blank">https://github.com/pagekite/PyPagekite/commit/9b11980a43cbe9f0c4fc7f749188cb6266737600</a><br>
> [3]: <a href="http://gambas.8142.n7.nabble.com/New-gb-web-form-component-td54380.html" rel="noreferrer" target="_blank">http://gambas.8142.n7.nabble.com/New-gb-web-form-component-td54380.html</a><br>
> [4]: <br>
> <a href="https://gitlab.com/gambas/gambas/commit/ab231c0bda9ff2eff0764dd7dad9269e3c4123d4" rel="noreferrer" target="_blank">https://gitlab.com/gambas/gambas/commit/ab231c0bda9ff2eff0764dd7dad9269e3c4123d4</a><br>
> <br>
<br>
WebForm.Startup is a property that allows to define the name of the web <br>
application startup form.<br>
<br>
By default, it's the project startup form, which should be your login form.<br>
<br>
Then, in your login form, once your user is authenticated, you set the <br>
WebForm.Startup property to the name of your real application startup form.<br>
<br>
Regards,<br>
<br>
-- <br>
Benoît Minisini<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>