Add it to the correct place
continuous-integration/drone/push Build is passing Details

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