[Using Sakai] Reg : Adding users in Sakai using External web-form

Steve Swinsburg steve.swinsburg at gmail.com
Sun Jun 29 15:47:57 PDT 2014


Have your form post to a script that uses the web services to provision an
account.

Or to a servlet that has the Sakai API's injected and use the API directly.

Never write SQL to touch the database directly.

Cheers
Steve

sent from my mobile device
On 28/06/2014 5:42 PM, "Prabhu Janakaraj" <prabhu142003 at gmail.com> wrote:

>  Hello All,
>                 I have been working on Self-user registration page for
> sakai using external HTML form. Here is the scenario, a seperate HTML page
> will appear to the user. The user will enter the values for the fields, you
> can think of a form for creating a user account on any webpage. I mapped
> the username field and password field to the SAKAI_USER table. But then the
> user is not able to login.
>
> As a trial I manually added users directly into the database on the tables
> SAKAI_USER and SAKAI_USER_ID_MAP. I see the user details I added when I
> login as admin on the Administration Workspace page, but the username is
> displayed as blank for the newly added user.
>
> Then, I ran this script
>
>  "SELECT
> <http://192.168.1.79/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.1%2Fen%2Fselect.html&token=5ba195606e598038b530eddd537ce576>
> *
> FROM `SAKAI_USER_PROPERTY`
> LIMIT 0 , 30"
>
> Once I run this script I could see the username for the newly created user
> from the Administration Workspace page, but still the user is not able to
> login.
>
> Again, from the Administration workspace page I resetted the password for
> the same user. Now the user is able to login.
>
> I don't understand why this issue is arising. If someone could help me in
> understanding the underlying process, that will be greatly helpful.
>
>
>
> Thanks,
> Prabhu
>
>
>
>
>
>
> ------------------------------
>    <http://www.avast.com/>
>
> This email is free from viruses and malware because avast! Antivirus
> <http://www.avast.com/> protection is active.
>
>
> _______________________________________________
> sakai-user mailing list
> sakai-user at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-user
>
> TO UNSUBSCRIBE: send email to
> sakai-user-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-user/attachments/20140630/2cf11710/attachment.html 


More information about the sakai-user mailing list