| Project: | LoginToboggan |
| Version: | 7.x-1.2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Issue Summary
It would be very useful if Logintoboggan supported exposed an RPC service using the Services Module to register users and validate their accounts.
Here is a first draft implementation. It still needs a little work, but it would be great to get something like this incorporated into a future version of Logintoboggan.
The patch splits apart the UI and backend part of user registration and validation, and the .tgz file provides a Service implementation that uses the backend to create and validate accounts
In this implementation, all of the services take a version as the first parameter, which is currently ignored. Using the version field allows changes to the RPC interface to be versioned, so for example if we need to change the arguments or return values later on, we can do that while providing backwards compatibility by providing different behavior depending on the version parameter.
Feedback is welcome!
| Attachment | Size |
|---|---|
| logintoboggan_service.patch | 8.15 KB |
| logintoboggan_service.tgz | 1.07 KB |
Comments
#1
will consider for 7.x
#2
Hi scotgifford,
Thanks for your contribution - are you interested in rolling this patch against master now, so it can be considered for D7?
Steve
#3
Considering that this is two years old....
Here's a patch from scratch that works with Services 7-3 to let you log in with either username or email. I might add more functionality to it later, but for now this meets the needs of my client.
Note: rename the second file to logintoboggan_resource.inc (attachment restrictions).
Best,
Andrey.
#4
if somebody wants to roll this into a separate logintoboggan_services module, i'll commit it to the contrib folder. i don't really want to maintain this in the main module.