func GetUser(w rest.ResponseWriter, r *rest.Request) {
	user := r.Env["USER"].(*types.User)
	w.WriteJson(&user)
}
@api {get} /user Get Authenticated User
@apiVersion 1.4.0
@apiName GetUser
@apiGroup User

@apiHeader {String} Authorization HTTP Basic Auth
@apiHeader {String} Accept-Version ^1.4.0 semver versioning

@apiSuccess {String} id Id of the User.
@apiSuccess {Date} inserted Date User was created
@apiSuccess {Date} updated Date User was updated
@apiSuccess {String} firstName First name of the User.
@apiSuccess {String} lastName  Last name of the User.
@apiSuccess {String} email Email of the User.
@apiSuccess {Boolean} agreeToTerms Agree to terms
@apiSuccess {Boolean} emailVerified True if email has been verified.
@apiSuccess {String} signupSource Identify signup source (android, ios, web)

@apiSuccessExample Success-Response:
HTTP/1.1 200 OK
{
"id": "11111111111111111111111111111111",
"inserted": "2018-09-11T18:05:04.420Z",
"updated": "2018-09-11T18:05:04.420Z",
"firstName": "John",
"lastName": "Doe",
"email": "johndoe@email.com",
"agreeToTerms": true,
"emailVerified": true,
"signupSource": "web"
}

@apiUse NotAuthorizedError
@apiUse InternalServerError
package api
import (
	"github.com/ant0ine/go-json-rest/rest"
	"github.com/openaccounting/oa-server/core/model"
	"github.com/openaccounting/oa-server/core/model/types"
	"net/http"
)
type VerifyUserParams struct {
	Code string `json:"code"`
}
type ConfirmResetPasswordParams struct {
	Code     string `json:"code"`
	Password string `json:"password"`
}
type ResetPasswordParams struct {
	Email string `json:"email"`
}