(error, req)
| 72 | } |
| 73 | |
| 74 | renderForm (error, req) { |
| 75 | const queryString = (req && req.url && req.url.replace(/[^?]+\?/, '')) || '' |
| 76 | const params = Object.assign({}, this.authQueryParams, { |
| 77 | registerUrl: this.registerUrl(), |
| 78 | returnToUrl: this.returnToUrl, |
| 79 | enablePassword: this.localAuth.password, |
| 80 | enableTls: this.localAuth.tls, |
| 81 | tlsUrl: `/login/tls?${encodeURIComponent(queryString)}` |
| 82 | }) |
| 83 | if (error) { |
| 84 | params.error = error.message |
| 85 | this.response.status(error.statusCode) |
| 86 | } |
| 87 | this.response.render('auth/login', params) |
| 88 | } |
| 89 | } |
no test coverage detected