Add it to the correct place
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Alex 2021-06-01 23:43:23 +02:00
parent adf163bad5
commit 7e2294933a
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1
3 changed files with 3 additions and 1 deletions

View file

@ -3,7 +3,7 @@ RUN pacman -Sy python-pip --noconfirm; pacman -Scc --noconfirm; find /var/cache/
#FROM python:3.8.6-buster #FROM python:3.8.6-buster
RUN pip install fbchat RUN pip install fbchat==1.9.7
RUN mkdir /app RUN mkdir /app
WORKDIR /app WORKDIR /app

View file

@ -41,6 +41,7 @@ type LoginResponse struct {
type RegisterRequest struct { type RegisterRequest struct {
Auth RegisterRequestAuth `json:"auth"` Auth RegisterRequestAuth `json:"auth"`
Type string `json:"type"`
Username string `json:"username"` Username string `json:"username"`
} }

View file

@ -147,6 +147,7 @@ func (mx *Client) RegisterUser(username string) error {
Auth: RegisterRequestAuth{ Auth: RegisterRequestAuth{
Type: "m.login.application_service", Type: "m.login.application_service",
}, },
Type: "m.login.application_service",
Username: username, Username: username,
} }
var rep RegisterResponse var rep RegisterResponse