#1
Actually i try to include a user directly from the DB,
1) i insert a row in yaf_user
2) i insert a row in yaf_prov_Membership
3) i insert a row in yaf_UserGroup

i did this to include one user in the application, but if i go to the log in page,
i insert my password (that know is a plane text not encrypted) it didn't work 😞

the thing is that i have to create users from another application and grant them in yet forum, and that's gonna be the only way to create users,,,

i guess my problem is because when i try to log in, when i type my password (example: 123), the system keeps encrypting it so it can be compared with the one in the data base, BUT!!! in the Data Base isn't encrypted because i inserted directly.

can some one show me, where the application does it? (encrypt the log in password to compare it with the db one)


Tks to every one 🙂
Topic Starter
  • esalazar
  • Rank: Member
  • Reputation:
    Neutral
    56%
  • Joined: 04/05/2009
  • Posts: 10
#2
did some one has try it?
Topic Starter
  • esalazar
  • Rank: Member
  • Reputation:
    Neutral
    56%
  • Joined: 04/05/2009
  • Posts: 10
#3
It's in the YAFMembershipProvider.cs in the YAF.Providers.Membership project (source version). Can you not get your other application to use Membership.CreateUser method when it creates the user, and thereby will put it in the correct table for you?

UserPostedImage 

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon 🙂 )
  • Mek
  • Rank: YAF Developer
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.Medal of Honor for the Support King: Given to a community member who tirelessly answers tons of support questions.
  • Joined: 12/07/2005
  • Posts: 892
  • Thanks: 5 times
  • Was thanked: 21 time(s) in 19 post(s)
#4
Mek wrote:

It's in the YAFMembershipProvider.cs in the YAF.Providers.Membership project (source version). Can you not get your other application to use Membership.CreateUser method when it creates the user, and thereby will put it in the correct table for you?




yep that could be a great idea, the only thing is that the other application is in vb, so i will have to translate it.

one more favor 🙂

can you show me the exact Membership.CreateUser method code plz...

i am a kind of newbie and i don't want to blow it heheheehh

tks....
Topic Starter
  • esalazar
  • Rank: Member
  • Reputation:
    Neutral
    56%
  • Joined: 04/05/2009
  • Posts: 10
#5

Dim username As String
Dim password As String
Dim email As String
Dim passwordQuestion As String
Dim passwordAnswer As String
Dim isApproved As Boolean
Dim status As MembershipCreateStatus
Dim returnValue As MembershipUser

returnValue = Membership.CreateUser(username, _
    password, email, passwordQuestion, _
    passwordAnswer, isApproved, status)



from http://msdn.microsoft.co...us/library/82xx2e62.aspx 

There is no problem because its .net, a class is a class 😉 and the providers is inbuilt functionality. As long as you have the provider segments in your other apps web.config you'll be able to call that method no problem.

UserPostedImage 

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon 🙂 )
  • Mek
  • Rank: YAF Developer
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.Medal of Honor for the Support King: Given to a community member who tirelessly answers tons of support questions.
  • Joined: 12/07/2005
  • Posts: 892
  • Thanks: 5 times
  • Was thanked: 21 time(s) in 19 post(s)
#6
Mek wrote:


Dim username As String
Dim password As String
Dim email As String
Dim passwordQuestion As String
Dim passwordAnswer As String
Dim isApproved As Boolean
Dim status As MembershipCreateStatus
Dim returnValue As MembershipUser

returnValue = Membership.CreateUser(username, _
    password, email, passwordQuestion, _
    passwordAnswer, isApproved, status)



from http://msdn.microsoft.co...us/library/82xx2e62.aspx 

There is no problem because its .net, a class is a class 😉 and the providers is inbuilt functionality. As long as you have the provider segments in your other apps web.config you'll be able to call that method no problem.



hey tks for this, i'm really glad 🙂
i'm going to prove it, i guess is the best idea.

Topic Starter
  • esalazar
  • Rank: Member
  • Reputation:
    Neutral
    56%
  • Joined: 04/05/2009
  • Posts: 10
Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved