Is there a User Account class/module...
Posted
#1
(In Topic #1295)
Regular

Many thanks,
chrisRoald
Posted
Regular

(and for the sake of it, if you use the term "app" again, I will have to kill your family
Posted
Regular

My program is a new type of fileManager (called 'metaSpace') that associates all types of files/URLs/text with one another, without the files, for example, needing to be kept in the same directory. This is achieved by way of JSON files that store all the associations made by the user - these files would usually be kept in the user's normal file storage medium…
But if a user of the program wants to maintain a discreet record (still a JSON structure) of the associations, then I'd like to store the JSON in the 'Data' area of the program; perhaps more securely through creating a Data area sub-directory such as Data/Chris - ie. a 'User Account' from which data can be retrieved when a correct password has been entered in a simple form perhaps.
My question is basically: Is there anywhere in a Gambas program's data structure that a user's username&password can securely be stored, and has anyone already created a component and/or class that achieves this 'user login' facility?
Thanks for reading,
chrisRoald
Posted
Administrator

chrisRoald said
But if a user of the program wants to maintain a discreet record (still a JSON structure) of the associations, then I'd like to store the JSON in the 'Data' area of the program; perhaps more securely through creating a Data area sub-directory such as Data/Chris - ie. a 'User Account' from which data can be retrieved when a correct password has been entered in a simple form perhaps.
My question is basically: Is there anywhere in a Gambas program's data structure that a user's username&password can securely be stored, and has anyone already created a component and/or class that achieves this 'user login' facility?
And why not use the existing linux user accounts?
That makes user based storage possible in the users private space.
If that is not what you want have a look at gb.crypt for password storage.
gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
1 guest and 0 members have just viewed this.


