[erlang-questions] user management code for a web site?

3 views
Skip to first unread message

Joe Armstrong

unread,
Nov 23, 2009, 10:16:02 AM11/23/09
to Erlang
I want to make a web site :-)

One thing I need is "all the junk to do with user management"

This includes:

- signing up for a new account
- "I forgot my passport"
- quotas and accounting
- rejecting "bots" that sign up for false accounts
- being able to send mails to gmail/etc.
- CAPTCHA integration etc.
- etc. etc. etc.


These needs are *generic* to many applications and have very little to
do with the
specific application concerned. Is there an Erlang applications that
can do all of this?

I'm not concerned with presentation issues, nor with which web framework to use.
Nor with any backend issues of which data store is used as a persistent store
for user data.

I just need a generic interface. Is there such a thing in Erlang?

Failing this is there such a thing in any other language that I might
learn from?

Cheers

/Joe

________________________________________________________________
erlang-questions mailing list. See http://www.erlang.org/faq.html
erlang-questions (at) erlang.org

Roberto Aloi

unread,
Nov 23, 2009, 10:48:28 AM11/23/09
to Joe Armstrong, Erlang
Hi Joe,

> I want to make a web site :-)

lol

> One thing I need is "all the junk to do with user management"

Fair enough

> This includes:
>
> - signing up for a new account
> - "I forgot my passport"
> - quotas and accounting
> - rejecting "bots" that sign up for false accounts
> - being able to send mails to gmail/etc.
> - CAPTCHA integration etc.
> - etc. etc. etc.
>
>
> These needs are *generic* to many applications and have very little
> to
> do with the
> specific application concerned. Is there an Erlang applications that
> can do all of this?
> I'm not concerned with presentation issues, nor with which web
> framework to use.
> Nor with any backend issues of which data store is used as a
> persistent store
> for user data.
>
> I just need a generic interface. Is there such a thing in Erlang?

The Erlang Web framework offers an e_auth component. The idea is to have an e_auth interface layer and some specific implementations.
As far as I know they support dets tables and mnesia. They also have a LDAP implementation, even if I'm not sure they ever completed it.
More information here:

http://wiki.erlang-web.org/Tutorial/Step5_Authentication?highlight=(e\_auth)

About the rest of your needs, I already have 80% of what you asked, but the code is not released yet. This will hopefully happen in the next couple of weeks.

I'm still missing CAPTCHAs. I was thinking about implementing an Erlang Web component for this:
http://www.captcha.net/

I also would like to integrate my stuff with esmtp (so far I'm using my own mailer):

http://github.com/archaelus/esmtp

Let me know if you want to share some of this work.

> Failing this is there such a thing in any other language that I might
> learn from?

There are no languages other than Erlang and Music. Maybe Sicilian.

Regards,

Roberto Aloi
Erlang Training and Consulting Ltd.
http://www.erlang-consulting.com
Twitter: @prof3ta
Blog: http://aloiroberto.wordpress.com

Olivier Sambourg

unread,
Nov 23, 2009, 10:55:51 AM11/23/09
to Joe Armstrong, Erlang
Hi,

There's also the new Erlang CMS, Zotonic, which was announced here a couple
of days ago:
http://zotonic.com/
Looks promising, but I haven't got the chance to give it a try yet.

Olivier

> http://wiki.erlang-web.org/Tutorial/Step5_Authentication?highlight=(e<http://wiki.erlang-web.org/Tutorial/Step5_Authentication?highlight=%28e>

Eric Stolten

unread,
Dec 1, 2009, 1:22:33 PM12/1/09
to Olivier Sambourg, Joe Armstrong, Erlang
I have given it a try and it is very smooth, modular, and fast. It is great
to see such a well put together open source erlang application. I plan on
taking a close look at their code.
Reply all
Reply to author
Forward
0 new messages