mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-05 10:59:33 +00:00
Remove unused code
This commit is contained in:
parent
aef56233a5
commit
aa099a340e
@ -115,28 +115,6 @@ object OCollective {
|
|||||||
def userNotLocal: PassChangeResult = UserNotLocal
|
def userNotLocal: PassChangeResult = UserNotLocal
|
||||||
}
|
}
|
||||||
|
|
||||||
case class RegisterData(
|
|
||||||
collName: Ident,
|
|
||||||
login: Ident,
|
|
||||||
password: Password,
|
|
||||||
invite: Option[Ident]
|
|
||||||
)
|
|
||||||
|
|
||||||
sealed trait RegisterResult {
|
|
||||||
def toEither: Either[Throwable, Unit]
|
|
||||||
}
|
|
||||||
object RegisterResult {
|
|
||||||
case object Success extends RegisterResult {
|
|
||||||
val toEither = Right(())
|
|
||||||
}
|
|
||||||
case class CollectiveExists(id: Ident) extends RegisterResult {
|
|
||||||
val toEither = Left(new Exception())
|
|
||||||
}
|
|
||||||
case class Error(ex: Throwable) extends RegisterResult {
|
|
||||||
val toEither = Left(ex)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def apply[F[_]: Async](
|
def apply[F[_]: Async](
|
||||||
store: Store[F],
|
store: Store[F],
|
||||||
uts: UserTaskStore[F],
|
uts: UserTaskStore[F],
|
||||||
|
@ -10,7 +10,6 @@ import cats.effect.{Async, Resource}
|
|||||||
import cats.implicits._
|
import cats.implicits._
|
||||||
|
|
||||||
import docspell.backend.PasswordCrypt
|
import docspell.backend.PasswordCrypt
|
||||||
import docspell.backend.ops.OCollective.RegisterData
|
|
||||||
import docspell.common._
|
import docspell.common._
|
||||||
import docspell.common.syntax.all._
|
import docspell.common.syntax.all._
|
||||||
import docspell.store.records.{RCollective, RInvitation, RUser}
|
import docspell.store.records.{RCollective, RInvitation, RUser}
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
package docspell.backend.signup
|
||||||
|
import docspell.common._
|
||||||
|
|
||||||
|
case class RegisterData(
|
||||||
|
collName: Ident,
|
||||||
|
login: Ident,
|
||||||
|
password: Password,
|
||||||
|
invite: Option[Ident]
|
||||||
|
)
|
@ -10,8 +10,7 @@ import cats.effect._
|
|||||||
import cats.implicits._
|
import cats.implicits._
|
||||||
|
|
||||||
import docspell.backend.BackendApp
|
import docspell.backend.BackendApp
|
||||||
import docspell.backend.ops.OCollective.RegisterData
|
import docspell.backend.signup.{NewInviteResult, RegisterData, SignupResult}
|
||||||
import docspell.backend.signup.{NewInviteResult, SignupResult}
|
|
||||||
import docspell.restapi.model._
|
import docspell.restapi.model._
|
||||||
import docspell.restserver.Config
|
import docspell.restserver.Config
|
||||||
import docspell.restserver.http4s.ResponseGenerator
|
import docspell.restserver.http4s.ResponseGenerator
|
||||||
|
Loading…
x
Reference in New Issue
Block a user