From 450341fee6f2cf3ee33cd4ed12e6fbc722f7455c Mon Sep 17 00:00:00 2001 From: Christian Haas Date: Mon, 28 Oct 2019 15:27:08 +0100 Subject: [PATCH] added Authenticator --- raylib-Go/internal/login/Authenticator.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 raylib-Go/internal/login/Authenticator.go diff --git a/raylib-Go/internal/login/Authenticator.go b/raylib-Go/internal/login/Authenticator.go new file mode 100644 index 0000000..0753cc0 --- /dev/null +++ b/raylib-Go/internal/login/Authenticator.go @@ -0,0 +1,7 @@ +package login + +// Authenticator validates a name and passphrase. +// If the credentials can't be found, an error is returned. +type Authenticator interface { + Authenticate(name, pass string) error +}