Add Download CSV Url
Dieser Commit ist enthalten in:
Ursprung
c0cc742051
Commit
989f05395a
@ -50,7 +50,7 @@ val SWAuth = createApplicationPlugin("SWAuth") {
|
||||
if(call.request.httpMethod == HttpMethod.Options) {
|
||||
return@onCall
|
||||
}
|
||||
val auth = call.request.headers["X-SW-Auth"]
|
||||
val auth = call.request.headers["X-SW-Auth"] ?: call.request.queryParameters["auth"]
|
||||
if (auth == null) {
|
||||
call.respond(HttpStatusCode.Unauthorized, ResponseError("Missing auth header"))
|
||||
} else if (!isValidCode(auth).first) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren