#1 2014-04-16 07:44:02

noobies
Member
Registered: 2011-09-13
Posts: 139

User authentication with sample 04 - HTTP Client-Server

I read the documentation and can not understand how to do the following in Example 04:
1) change the name, password and the right standard account (Database.SetUser ('User', 'synopse'))
2) add a new account
Maybe there is a simple example of management accounts?

Offline

#2 2014-04-19 07:07:06

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: User authentication with sample 04 - HTTP Client-Server

You need to change the TSQLAuthUser and TSQLAuthGroup table content.
You can use the ORM classes for this.

See class procedure TSQLAuthGroup.InitializeTable() for the code which will initialize those tables with the default values.
You can write something similar.

Ensure you did read the SAD 1.18 pdf content about authorization.

We did not include any "standard" mechanism of authorization customization, since we think it is dedicated to each application: it will depend on your actual process!

Offline

Board footer

Powered by FluxBB