Skip to content
Browse files

Allow the server to reject registration attempts

  • Loading branch information...
Shinmera committed Aug 14, 2018
1 parent 0e712d9 commit 12c27fa53e1e8e1d3fb6e39de09fea10a7ca1458
Showing with 7 additions and 1 deletion.
  1. +2 −1
  2. +1 −0 package.lisp
  3. +4 −0 protocol.lisp
@@ -134,7 +134,8 @@ An update is always checked as follows:
#### 5.2 Profile Registration
When a user sends a `register` update, the server must act as follows:

1. If a profile of the same name as the user does not already exist, the profile is created.
1. If the server disagrees with the attempted registration, a `registration-rejected` update is sent back and the request is dropped.
1. If the profile does not yet exist, it is created.
1. The password of the profile associated to the user is changed to match the one from the update.
1. The profile must stay live until at least 30 days after the user associated with the profile has existed on the server.

@@ -126,6 +126,7 @@
@@ -331,6 +331,10 @@
(:default-initargs :text "No such channel exists on the server."))

(define-protocol-class registration-rejected (update-failure)
(:default-initargs :text "Your profile registration was rejected."))

(define-protocol-class already-in-channel (update-failure)
(:default-initargs :text "The user is already in the channel."))

0 comments on commit 12c27fa

Please sign in to comment.
You can’t perform that action at this time.