This commit is contained in:
parent
7a6c1cd085
commit
206dda0761
@ -129,6 +129,7 @@ func (r *RedisRouter) Route(msg *meowlib.ToServerMessage) (*meowlib.FromServerMe
|
|||||||
from_server.Invitation.Expiry = expiry.UTC().Unix()
|
from_server.Invitation.Expiry = expiry.UTC().Unix()
|
||||||
case 2: // get invitation
|
case 2: // get invitation
|
||||||
invitation, err := r.GetInvitation(msg.Invitation.Shortcode, msg.Invitation.Password)
|
invitation, err := r.GetInvitation(msg.Invitation.Shortcode, msg.Invitation.Password)
|
||||||
|
from_server.Invitation = &meowlib.Invitation{}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err.Error() == "auth failed" {
|
if err.Error() == "auth failed" {
|
||||||
from_server.Invitation.Payload = []byte("authentication failure")
|
from_server.Invitation.Payload = []byte("authentication failure")
|
||||||
|
Loading…
Reference in New Issue
Block a user