You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Backend/src/main/scala/org/tbasket/handler/LoginHandler.scala

22 lines
576 B

package org.tbasket.handler
import org.tbasket.api.compute.APIRequestHandler
import zio.http.{Request, Response}
import io.getquill._
import org.tbasket.data.User
import zio.{ZEnvironment, ZIO}
object LoginHandler extends APIRequestHandler {
private val ctx = new SqlMirrorContext(MirrorSqlDialect, Literal)
import ctx._
private def getAccount(mail: String, passwordHash: Int) = quote {
//query[User].filter(_.mailAddress == mail).filter(_.passwordHash == passwordHash)
}
override def post(request: Request): Response = {
???
}
}