advice on how to add public signup form

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

advice on how to add public signup form

wvengen
Administrator
Hi,

At Foodcoop Amsterdam we'd like people to signup directly from the web,
pay the membership fee (online or offline), and start ordering. Right
now, for the signup part, I've hacked something together involving login
and invites controllers/views.

I'm wondering - any ideas how to implement this in a clean way? Either
allow people to fill in a form to create user + ordergroup right away,
or to create an invite for such after entering en emailaddress. My rails
knowledge does not yet feel deep enough to come up with the proper
solution. If you have any advice, please share, even if it seems
straightforward to you.

Cheers,
- Willem
rw
Reply | Threaded
Open this post in threaded view
|

Re: advice on how to add public signup form

rw
Hi Willem,

maybe something like Devise [1] would be helpful? I'm not sure if it is
an overkill and I doesn't have any experience with it. But I found many
recommendations.

Maybe that is a development strategy question: How much do we want to
code ourselves? How much reuse is reasonable? There might be other parts
of foodsoft, where we could replace foodsoft code by external modules.
Did you discuss this already?

Regards, Robert.

[1] https://github.com/plataformatec/devise


Am 14.06.2013 00:30, schrieb wvengen [via foodsoft]:

> Hi,
>
> At Foodcoop Amsterdam we'd like people to signup directly from the web,
> pay the membership fee (online or offline), and start ordering. Right
> now, for the signup part, I've hacked something together involving login
> and invites controllers/views.
>
> I'm wondering - any ideas how to implement this in a clean way? Either
> allow people to fill in a form to create user + ordergroup right away,
> or to create an invite for such after entering en emailaddress. My rails
> knowledge does not yet feel deep enough to come up with the proper
> solution. If you have any advice, please share, even if it seems
> straightforward to you.
>
> Cheers,
> - Willem
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://foodsoft.51229.x6.nabble.com/advice-on-how-to-add-public-signup-form-tp64.html
>
> To start a new topic under foodsoft-dev, email
> [hidden email]
> To unsubscribe from foodsoft-dev, click here
> <
> NAML
> <
http://foodsoft.51229.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>

Reply | Threaded
Open this post in threaded view
|

Re: advice on how to add public signup form

benni
Yep, devise is the defacto standard for authentication in rails. [1]
But, as we already have implemented many of its features by our own, I
don't think its a good idea to drop it away and replace it with devise.
And devise doesn't solve the problem of paying the membership fee.

I would suggest, that you start with a simple sign_up controller, with
an new and create action, which you use to let the users create own
accounts. But before letting the users order, they have to be activated
by the foodsoft administrators. This workflow is easy to implement, and
we can add a configurable welcome message, in where the new members are
asked to pay the membership fee by bank transfer or something else.

I guess, this could also be a nice feature for other foodcoops as well.
But integrating a payment service bring a lot more complexity, security
and compability questions.

I know, this is not as comfortable as normal webshop, but foodcoops
aren't a comfortable normal webshop, I guess.

[1] https://www.ruby-toolbox.com/categories/rails_authentication

Am 14.06.2013 08:51, schrieb rw [via foodsoft]:

> Hi Willem,
>
> maybe something like Devise [1] would be helpful? I'm not sure if it is
> an overkill and I doesn't have any experience with it. But I found many
> recommendations.
>
> Maybe that is a development strategy question: How much do we want to
> code ourselves? How much reuse is reasonable? There might be other parts
> of foodsoft, where we could replace foodsoft code by external modules.
> Did you discuss this already?
>
> Regards, Robert.
>
> [1] https://github.com/plataformatec/devise
>
>
> Am 14.06.2013 00:30, schrieb wvengen [via foodsoft]:
>
>> Hi,
>>
>> At Foodcoop Amsterdam we'd like people to signup directly from the web,
>> pay the membership fee (online or offline), and start ordering. Right
>> now, for the signup part, I've hacked something together involving login
>> and invites controllers/views.
>>
>> I'm wondering - any ideas how to implement this in a clean way? Either
>> allow people to fill in a form to create user + ordergroup right away,
>> or to create an invite for such after entering en emailaddress. My rails
>> knowledge does not yet feel deep enough to come up with the proper
>> solution. If you have any advice, please share, even if it seems
>> straightforward to you.
>>
>> Cheers,
>> - Willem
>>
>>
>> ------------------------------------------------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
> http://foodsoft.51229.x6.nabble.com/advice-on-how-to-add-public-signup-form-tp64.html
>>
>> To start a new topic under foodsoft-dev, email
>> [hidden email] </user/SendEmail.jtp?type=node&node=65&i=0>
>> To unsubscribe from foodsoft-dev, click here
>> <
>> NAML
>>
> <http://foodsoft.51229.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>>
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://foodsoft.51229.x6.nabble.com/advice-on-how-to-add-public-signup-form-tp64p65.html
>
> To start a new topic under foodsoft-dev, email
> [hidden email]
> To unsubscribe from foodsoft-dev, click here
> <
> NAML
> <
http://foodsoft.51229.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
pgp Schlüssel-ID: 0x3B2EE0A4
Fingerabdruck: 805F 73B1 9F45 4122 2FE6 ED75 0786 8427 3B2E E0A4


signature.asc (271 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: advice on how to add public signup form

wvengen
Administrator
Thanks benni, that will get me going.

With regards to Devise - yes! That would bring features like email
authentication and account locking after failed logins. But most
importantly, as our foodcoop grows, we will probably like to use
multiple software systems. In that case we'd really benefit rfrom a
common authentication solution based on OpenID, SAML, or something else.
At the moment, I'd like to focus on other things, but it's something I'm
keeping in mind.

- Willem

On 14-06-13 10:20, benni [via foodsoft] wrote:

> Yep, devise is the defacto standard for authentication in rails. [1]
> But, as we already have implemented many of its features by our own, I
> don't think its a good idea to drop it away and replace it with devise.
> And devise doesn't solve the problem of paying the membership fee.
>
> I would suggest, that you start with a simple sign_up controller, with
> an new and create action, which you use to let the users create own
> accounts. But before letting the users order, they have to be activated
> by the foodsoft administrators. This workflow is easy to implement, and
> we can add a configurable welcome message, in where the new members are
> asked to pay the membership fee by bank transfer or something else.
>
> I guess, this could also be a nice feature for other foodcoops as well.
> But integrating a payment service bring a lot more complexity, security
> and compability questions.
>
> I know, this is not as comfortable as normal webshop, but foodcoops
> aren't a comfortable normal webshop, I guess.
>
> [1] https://www.ruby-toolbox.com/categories/rails_authentication