39 lines
876 B
JavaScript
39 lines
876 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.desc = void 0;
|
|
const action_1 = require("oak-domain/lib/actions/action");
|
|
exports.desc = {
|
|
attributes: {
|
|
userId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "user"
|
|
},
|
|
prevPassword: {
|
|
type: "varchar",
|
|
params: {
|
|
length: 32
|
|
}
|
|
},
|
|
newPassword: {
|
|
type: "varchar",
|
|
params: {
|
|
length: 32
|
|
}
|
|
},
|
|
prevPasswordSha1: {
|
|
type: "text"
|
|
},
|
|
newPasswordSha1: {
|
|
type: "text"
|
|
},
|
|
result: {
|
|
notNull: true,
|
|
type: "enum",
|
|
enumeration: ["success", "fail"]
|
|
}
|
|
},
|
|
actionType: "crud",
|
|
actions: action_1.genericActions
|
|
};
|