Is there a User Account class/module...

Post

Posted
Rating:
#1 (In Topic #1295)
Regular
chrisRoald is in the usergroup ‘Regular’
 Hi, I'd like any user of my program to optionally be able to Signup/Login to an 'app account' with a password. Is there a class/module already written that aids this functionality? Or any ideas on how I might be able to program securely maintained passwords in the program's storage!
Many thanks,
     chrisRoald
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Regular
thatbruce is in the usergroup ‘Regular’
Please be clearer, I have no idea as to what you are asking? "optionally login???" "program storage???"
(and for the sake of it, if you use the term "app" again, I will have to kill your family :D )

Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
chrisRoald is in the usergroup ‘Regular’
Ok Bruce, no more 'apps', I promise ;) !   Brief description of what I'm looking for:..

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
Online now: No Back to the top

Post

Posted
Rating:
#4
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’

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!
Online now: No Back to the top
1 guest and 0 members have just viewed this.