Prev Thread Prev Thread   Next Thread Next Thread
 Managing users with SIP
Author Message
dod

  • Total Posts : 4
  • Reward points : 0
  • Joined: 05/18/2007
  • Status: offline
Managing users with SIP - 05/24/2007 07:33:36 AM
In our web application, we have users defined by their login, password, e-mail address and group.
We want to use SIP to synchronize users of our application with the ones in the forum.
The idea would be to scan our users and call signIn to check if they are in the forum database. If they are not present, then call Register. Then synchronize the user group with the forum groups using isGroupMember, addUserToGroup and removeUserFromGroup.
 
However, several questions come to my mind:
1. What if the user is changing his password or e-mail address in our application? How do I update the forum user in that case? It seems that there is no method for editing users information such as password or e-mail. I could recreate a new user if the password has changed because SignIn would return false, so I would use Register, but what if the user is changing his e-mail address? How could I update the e-mail address of a forum user using SIP?
 
2. If a user is deleted in our application, how do can I delete this user in th forum using SIP?
 
Samuel

  • Total Posts : 9151
  • Reward points : 27365
  • Joined: 05/23/2001
  • Status: offline
RE: Managing users with SIP - 05/24/2007 08:08:05 AM
  1. There is a topic in our tutorial forum to handle this password and email issue. We don't use the SIP, but simple SQL script to accomplish this.
  2. You can use a simple SQL statement to ban or inactivate that account. This is as effective as deleting an account from users perspective. Then, when you want to clean up inactive users, you can do so in the admin control panel.
ASPPlayground.net Developer
dubied

  • Total Posts : 5
  • Reward points : 0
  • Joined: 05/24/2007
  • Status: offline
RE: Managing users with SIP - 05/24/2007 10:55:58 PM
Thanks for your reply.
 
I have seen the tutorial about the password change, but not about the e-mail update. How can I update the e-mail address of a forum user?
Samuel

  • Total Posts : 9151
  • Reward points : 27365
  • Joined: 05/23/2001
  • Status: offline
RE: Managing users with SIP - 05/25/2007 03:21:47 AM
you use the same update statement as the one for updating passwords, and the column name for email is [email].
ASPPlayground.net Developer

  Enter the code shown; Click to reload image.
Post Message Preview
Jump to:

Current active users
There are 0 members and 1 guests.
Icon Legend and Permission
  • New Messages
  • No New Messages
  • Hot Topic w/ New Messages
  • Hot Topic w/o New Messages
  • Locked w/ New Messages
  • Locked w/o New Messages
  • Read Message
  • Post New Thread
  • Reply to message
  • Post New Poll
  • Submit Vote
  • Post reward post
  • Delete my own posts
  • Delete my own threads
  • Rate post

© 2000-2008 ASPPlayground.NET Forum Version 3.2 a