great
This commit is contained in:
parent
66884c64bb
commit
4b8230c1ff
18 changed files with 29 additions and 23 deletions
|
|
@ -6,8 +6,8 @@ import (
|
|||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/Bronku/iroon/models"
|
||||
"github.com/Bronku/iroon/store"
|
||||
"github.com/Bronku/cake-order-tracker/models"
|
||||
"github.com/Bronku/cake-order-tracker/store"
|
||||
)
|
||||
|
||||
type Authenticator struct {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package auth
|
|||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/Bronku/iroon/crypto"
|
||||
"github.com/Bronku/cake-order-tracker/crypto"
|
||||
)
|
||||
|
||||
func (a *Authenticator) verifyCredentials(login, password string) error {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/Bronku/iroon/models"
|
||||
"github.com/Bronku/cake-order-tracker/models"
|
||||
)
|
||||
|
||||
func (a *Authenticator) getSession(r *http.Request) (models.Token, error) {
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import (
|
|||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/Bronku/iroon/crypto"
|
||||
"github.com/Bronku/iroon/models"
|
||||
"github.com/Bronku/cake-order-tracker/crypto"
|
||||
"github.com/Bronku/cake-order-tracker/models"
|
||||
)
|
||||
|
||||
func (a *Authenticator) newSession(user string) (http.Cookie, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue