Skip to content

Send back an exception or error code if user already exists. #199

@imaginator

Description

@imaginator

Creating the same user twice always returns "OK"

curl https://tellmo.buddycloud.com/api/account -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d "{ \"username\": \"user2@tellmo.buddycloud.com\", \"password\": \"12345678\", \"email\": \"azeem.akram@devbatch.com\" }"        

If we try to use this command with an already used "username" it still returns OK. Should it not return any Error or Exception that username already exist?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions