Windows 上的 Feathersjs 身份验证冲突
Feathersjs auth conflict on Windows
生成具有本地身份验证的应用程序后 feathers cli
第一个用户正常创建,但是当我尝试使用它进行身份验证时出现此错误
然后我继续尝试添加其他用户,它以 409 conflict
响应,尽管我更改了所有信息
这是我正在使用的猫鼬模型
module.exports = function (app) {
const modelName = "users";
const mongooseClient = app.get("mongooseClient");
const schema = new mongooseClient.Schema(
{
userName: { type: String, unique: true, lowercase: true },
password: { type: String, required: true },
displayName: { type: String, required: true },
},
{
timestamps: true,
}
);
这是一个 windows 问题,显然您只需编辑转义名称,因为它是 写在官方文档中的
非常抱歉占用您的时间
生成具有本地身份验证的应用程序后 feathers cli
第一个用户正常创建,但是当我尝试使用它进行身份验证时出现此错误
然后我继续尝试添加其他用户,它以 409 conflict
响应,尽管我更改了所有信息
这是我正在使用的猫鼬模型
module.exports = function (app) {
const modelName = "users";
const mongooseClient = app.get("mongooseClient");
const schema = new mongooseClient.Schema(
{
userName: { type: String, unique: true, lowercase: true },
password: { type: String, required: true },
displayName: { type: String, required: true },
},
{
timestamps: true,
}
);
这是一个 windows 问题,显然您只需编辑转义名称,因为它是 写在官方文档中的
非常抱歉占用您的时间