浏览代码

Add "username taken" error

master
Matt Baer 6 年前
父节点
当前提交
8cbd598abb
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      errors/general.go

+ 1
- 0
errors/general.go 查看文件

@@ -26,4 +26,5 @@ var (
// User errors
ErrUserNotFound = impart.HTTPError{http.StatusNotFound, "User doesn't exist."}
ErrUserNotFoundEmail = impart.HTTPError{http.StatusNotFound, "Please enter your username instead of your email address."}
ErrUsernameTaken = impart.HTTPError{http.StatusConflict, "Username is already taken."}
)

正在加载...
取消
保存