({ }, q: string)
| 146 | |
| 147 | @param('q', Types.String) |
| 148 | async get({ }, q: string) { |
| 149 | let udoc = await user.getByUname('system', q); |
| 150 | udoc ||= await user.getByEmail('system', q); |
| 151 | if (!udoc) this.response.body = { tfa: false, authn: false }; |
| 152 | else this.response.body = { tfa: udoc.tfa, authn: udoc.authn }; |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | class UserWebauthnHandler extends Handler { |
nothing calls this directly
no test coverage detected