Anope IRC Services

Anope Development => Feature Requests => Topic started by: Ivan on November 23, 2016, 03:00:01 PM

Title: Nick registration via Web/Facebook/Twitter
Post by: Ivan on November 23, 2016, 03:00:01 PM
Is there a way to provide nick registration via web or Facebook/Twitter integration?

We provided to our users explanation similar to this: https://wiki.mibbit.com/index.php/Create_your_own_nickname

To follow the instructions, common users would need to have two browser windows opened at the same time (one for instructions, other for web based IRC client) and it seems that's not easy task for them.

So were thinking of some simpler approach, using some web form.

Please advise.
Title: Re: Nick registration via Web/Facebook/Twitter
Post by: Adam on November 23, 2016, 03:28:18 PM
http://wiki.anope.org/index.php/2.0/Modules/m_sql_authentication will allow you to authenticate users against an external SQL database.
Title: Re: Nick registration via Web/Facebook/Twitter
Post by: Ivan on November 23, 2016, 03:58:16 PM
I thought somebody wrote web form module already, working with existing Anope mysql database.
Title: Re: Nick registration via Web/Facebook/Twitter
Post by: Ivan on November 24, 2016, 10:47:21 AM
When using m_sql_authentication module, does Anope authenticate users from both anope_db_NickCore table and external database or from external database only?
Title: Re: Nick registration via Web/Facebook/Twitter
Post by: Adam on November 24, 2016, 02:42:17 PM
m_sql_authentication authenticates people against an external database. The encryption mods (enc_*) authenticate people against the password stored on their account. So it depends on whether you load just one of those or both or none.
Title: Re: Nick registration via Web/Facebook/Twitter
Post by: Ivan on November 24, 2016, 07:32:33 PM
So these are the steps:

1) Create simple PHP script for nick registration on the web, updating new table called e.g. 'web_nicks', having user/password combination

2) Enable m_sql_authentication module querying 'web_nicks' table

3) When authenticating users, Anope will check both anope_db_NickCore table + web_nicks table

Is this correct?
Title: Re: Nick registration via Web/Facebook/Twitter
Post by: Ivan on September 29, 2019, 04:38:57 PM
Any example for querying WordPress database?