mirror of
https://github.com/ssep1ol/overleaf-registration-be.git
synced 2026-07-21 20:40:21 +00:00
First commit
This commit is contained in:
@@ -91,10 +91,9 @@ func (o *Overleaf) Login(email, password string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// RegisterUser registers a new user
|
// RegisterUser registers a new user
|
||||||
func (o *Overleaf) RegisterUser(email, password string) error {
|
func (o *Overleaf) RegisterUser(email string) error {
|
||||||
resp, err := o.post("/admin/register", map[string]string{
|
resp, err := o.post("/admin/register", map[string]string{
|
||||||
"email": email,
|
"email": email,
|
||||||
"password": password,
|
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user