Last post Dec 06, 2005 11:01 AM by karine
Dec 06, 2005 11:01 AM|karine|LINK
Hi, I finally managed to see my custom module in DNN using VS 2003 and compiling all in the DNN bin so that i can see the changes. I'm now just using an ascx file (view) and the codebehind corresponding. That's perfect. But now, i'd like to move on so that
i would be able to check and insert datas from a database different from DNN.
Actually, what i want to do is create a custom form to register a category of dnn users called "members" in DNN roles. For a member to log in on the site, he needs to first validate some personal entries. If everything is ok, he then receives his registration
code and a random password to get access to the site.
First, this is what I plan to do in my code :
a-compare the data typed in by the members and those stored in the databse
b-check if the visitor is already registered as member
c- if not (both), i send the "core" welcome message with a random password and the verification code
Is that alright? Do I need to add more, security tips or else?
When it comes to data and business layers, it gets tricky. There are my questions :
1-Using two databases
I know it is possible to interact with another database by changing the web.config file. But can i call the two different databases in the same vb file? How does DNN support this? What is the best way to manage both databases?
2- User Information
Where do i store user password, pseudo and username, and so on. There are thousands of tables in DNN database.
I don't understand much (for the moment) in DNN multiple object controllers. Do i need to opt for the same provider model? What is the userInfo, is it necessary? Can someone give me some clues on what exactly i need to do? Wh
I will use custom procedure, for instance, i don't need the delete or the update request. Are they compulsory?
I want my users autoassigned as members (i selected the option in site setting) but as i use my own registration form, how can i put it? (in the database roleID=3, for example?)
5-Random password and verified registration option
I'd like to send their password to my new members: how can i place it in the mail content ?(located in DNN resource file : app_GlobalResources\GlobalResources.resx)
That's a lot of questions, but i've been thinking of this quite a while, trying to understand DNN functionalities. I tried to use DNNJungle templates but i'd rather take time to create my own specific files and "private" DNN modules are too expensive.
Thank you for help!