sipp
Version:
An Opinionated, High-Productivity MVC Web Framework in TypeScript
16 lines • 427 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Csrf = void 0;
class Csrf {
constructor(req) {
this.req = req;
}
csrfToken() {
return this.req.csrfToken();
}
csrfField() {
return `<input type="hidden" style="display: none; tab-index: -1;" value="${this.csrfToken()}" name="_csrf" />`;
}
}
exports.Csrf = Csrf;
//# sourceMappingURL=Csrf.js.map