Update link to the draft/account-registration spec #3
@ -6,7 +6,7 @@ This is a basic still WIP framework for registering an account on an ircd using
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- It relies on the WIP IRCv3.2 spec [draft/account-registration](https://github.com/ProgVal/ircv3-specifications/blob/register/extensions/account-registration.md)
|
- It relies on the draft IRCv3 spec [draft/account-registration](https://ircv3.net/specs/extensions/account-registration.html)
|
||||||
- It utilizes the flask framework and `WEBIRC` to relay remote host ip address.
|
- It utilizes the flask framework and `WEBIRC` to relay remote host ip address.
|
||||||
- Can be tweaked to allow registration attempts from exit-nodes and other unsavory hosts allowing them to securely work with the `require-sasl` constraint if needed.
|
- Can be tweaked to allow registration attempts from exit-nodes and other unsavory hosts allowing them to securely work with the `require-sasl` constraint if needed.
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ def ircregister(userip, username, password, email="*"):
|
|||||||
# but if the server responds with the corresponding FAIL we
|
# but if the server responds with the corresponding FAIL we
|
||||||
# need to try again. We can also handle email-required using
|
# need to try again. We can also handle email-required using
|
||||||
# the same keys. How to access these key-value pairs?
|
# the same keys. How to access these key-value pairs?
|
||||||
# reference: https://github.com/ProgVal/ircv3-specifications/blob/register/extensions/account-registration.md#commands
|
# reference: https://ircv3.net/specs/extensions/account-registration.html
|
||||||
|
|
||||||
# NICK and USER
|
# NICK and USER
|
||||||
_send(irctokens.build("USER", ["u", "0", "*", username]))
|
_send(irctokens.build("USER", ["u", "0", "*", username]))
|
||||||
@ -73,4 +73,4 @@ def ircregister(userip, username, password, email="*"):
|
|||||||
if line.command == "REGISTER" and ("SUCCESS" in line.params):
|
if line.command == "REGISTER" and ("SUCCESS" in line.params):
|
||||||
to_send = irctokens.build("QUIT")
|
to_send = irctokens.build("QUIT")
|
||||||
_send(to_send)
|
_send(to_send)
|
||||||
return "SUCCESS"
|
return "SUCCESS"
|
||||||
|
Loading…
Reference in New Issue
Block a user