You need to Register for free and Login to post a message in the forum.

Forum

Subject: Creat a custom Login & Registration Module.
Prev Next
You are not authorized to post a reply.

Page 2 of 2 << < 12
Author Messages
Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5354


29 Dec 2009 7:09 AM  
That's a bit of an open ended question.

I would recommend that you look at the book "Professional DotNetNuke Module Programming" by Mitchel Sellers.  There is other good information available at Michael Washington's website, adefwebserver.com.

Joe Craig
DNN Creative Support
Subscribe to the website
Paluri Vimala
Nuke Newbie
Nuke Newbie
Posts:9

04 Jan 2010 3:23 AM  
Hi friend, I missed out small logic to think. Now I cleared the redirect issue. Its really a nice book for newbies. Thank you.
HPi
Nuke Newbie
Nuke Newbie
Posts:2

11 Jan 2010 7:58 AM  
Posted By Joseph Craig on 23 Aug 2007 7:46 PM
It would be better to replace the "stock" Membership Provider with a custom version. You may also want to look at the Role and Profile providers, too.

The existing providers will show you how they were set up, and also the functionality that you have to provide.

If you do this, you can guarantee that the higher-level DotNetNuke functionality is not damaged ...

Hi,

I have been developing modules, providers etc. for the last few year for DNN 4 and 5. But when I had to create custom role and membership
providers while using external databases and web services, I ran across a few very annoying "features" that seem to be very hard to bypass.

  • DNN is getting some information from database views, like vw_UserRoles and vw_TabPermissions, which means that if either DNN Users or
    Roles tables are empty, those view query based features and functions don't work.
  • DNN supports only integers as role and user ids, so using guids or other values in an external database is useless, unless you create
    mapping tables and link those ids together in the providers
  • DNN is sometimes querying for roles by (seemingly) hardcoded value(s), like "Administrator" even though the role provider doesn't
    offer a role with that name

Do you have any suggestions as to how to bypass these things, without creating e.g. users and roles to DNN's tables with similar values as
the ones in the external database? It's not a hard job, but it doesn't sound like it should be... checking every time when a user logs in or
someone is adding a new user based tab permission, if that user or that role already exists in DNN's table, and if not, creating them. I
would appreciate if there is some kind of useful solution, instead of these solutions I have found.
Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5354


11 Jan 2010 8:16 AM  
No, I don't have any suggestions.  I suspect that you know a LOT more about than I know!  This would possibly be a good item for discussion on the forums intended for developers at DotNetNuke.com, though.

Joe Craig
DNN Creative Support
Subscribe to the website
HPi
Nuke Newbie
Nuke Newbie
Posts:2

11 Jan 2010 4:28 PM  
Thank you for your quick answer. I'm not sure about that, how much I know about DNN. Where ever I go, I'm just finding more restrictions I'll ask this same thing from dotnetnuke.com, even I'm not sure how to make myself enough clear or even visible in that mass.
samual
Nuke Newbie
Nuke Newbie
Posts:2

25 Feb 2010 10:38 PM  
Hi,

I am new to dotnetnuke(version-5.2).

I want to create a custom registration module I have created one and I am using the default dotnetnuke tables to store the data but there are two fields in database(p word and p wordsalt )to store data regarding p word in some encrypted form how to change my own custom module p word field to store values in these fields.

The next problem I am facing is that after submitting the data what to do so that user get loginned to site.

I got an error message("Violation of UNIQUE KEY constraint 'IX_DNN_Users'. Cannot insert duplicate key in object 'dbo.dnn_users'. The statement has been terminated.") when I submit the data in custom registration to store in database How to resolve that.

Another error message("Invalid length for a Base-64 char array.") comes when I try to login via the account that I have created using custom registration

Please Help me.....



Thanx in advance
Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5354


26 Feb 2010 7:48 AM  
Since you are new to DotNetNuke, I think that you should first learn a bit about the inner workings before diving in and coding.

DotNetNuke contains methods to create and modify users, and to login the in and log them out.  You should use those, and you should not be directly interacting with the database.

Look at the existing registration and authentication code and understand it.  Hopefully, you'll be able to take that as a base and modify it for your needs.  Whenever possible, create additional modules, etc. rather than replacing code.  If you work that way, you'll be able to upgrade and keep your custom functionality. 

The book "Professional DotNetNuke 4" has a large section that discusses member management.  Mitchel Sellers' book on creating DotNetNuke modules has lots of very useful information.  Michael Washington's ADEFWebServer.com site has lots of information.

All that said ... my recommend would be that you get a copy of Data Springs' Dynamic Registration and Dynamic Login and use those to create your customized registration and login procedures.  You won't be able to duplicate what they have done for the cost of the modules.

Joe Craig
DNN Creative Support
Subscribe to the website
You are not authorized to post a reply.
Page 2 of 2 << < 12

Forums > DotNetNuke® > DotNetNuke® Questions > Creat a custom Login & Registration Module.



ActiveForums 3.7

Latest Forum Posts

RE: How to do links? by Guy..L
It's really hard to tell quite how awesome DNN Nav v2 is given the documentation and search results ...
Regarding Editor by prithviraj
Pls let me know whar folders we need to upload when we are changing editors. Suppose i have cute edi...
RE: Change Registration Redirect? by leesykes
It would be best to use Dynamic Registration to avoid 2 registrations.With Dynamic Registration you ...
Indexing DNN pages by Google by Jake Vizner
I have two different DNN web sites. Using Google Webmaster Tools I can see the Google indexed 12 out...
Query Regarding RAD EDitor by prithviraj
Hi, I'm using R.A.D editor in my site. At the time of adding images through the editor I'm unabl...
RE: while installing bulk emailer module in my website by jncraig
Yes, this definitely is a file permissions issue. The default ASP.NET worker task needs to have ful...
RE: Background Music by jncraig
That will work.
RE: Auto create pages and content by dhassall
Hi Joe DNN Out of the box version 4.9 Login as Host with Firefox to create and IE8 to monitor, CTR...
RE: while installing bulk emailer module in my website by dub
Agiline, We have seen this problem before. It is caused by the Security on IIS. Please have a loo...
RE: Change Registration Redirect? by ollep
Probably still want to do it with Dynamic Forms now.My reason for changing (except from getting Aweb...
RE: Change Registration Redirect? by ollep
YES!http://www.dnncreative.com/Subscribe/tabid/81/Default.aspx
RE: Change Registration Redirect? by ollep
Yes I noticed that we where talking about 2 different Modules as soon as I dug into the tutorials.Ab...
RE: Change Registration Redirect? by leesykes
If you are check out the links that I have placed in there:http://www.dnncreative.com/Subscribe/tabi...
RE: Change Registration Redirect? by leesykes
Are you referring to when subscribing there is a link to register and after they register it sends t...
RE: Change Registration Redirect? by leesykes
The method I use on here for managing my email list is complicated and involves SQL queries, it is b...
Ecommerce module needed by vishalranaut
Infyecommerce is providing ecommerce packages for the clients to develop their ecommerce sites.They ...
RE: DS Dynamic Forms / AWeber by leesykes
If you are getting time out issues when installing I would use the auto install method by using FTP,...
RE: Change Registration Redirect? by ollep
Oooops Helps reading your responses before posting here Lee. I referred to Issue 40 / 41 and ...
DS Dynamic Forms / AWeber by ollep
Thanks for a great Tutorial Lee!  - As usual.(I still can't install the module in Firefox though, Fi...
while installing bulk emailer module in my website by agiline
Hi all,i have downloaded bulk e mailer trial version and when i am installing it in my website it wa...
AppTheory
RSS Feeds