MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / renderForm

Method renderForm

lib/requests/login-request.mjs:74–88  ·  view source on GitHub ↗
(error, req)

Source from the content-addressed store, hash-verified

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}

Callers 4

getMethod · 0.45
errorMethod · 0.45

Calls 1

registerUrlMethod · 0.80

Tested by

no test coverage detected