Skip to content

Commit

Permalink
fix spelling mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed Sep 18, 2020
1 parent c7811eb commit bf1c58d
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions client_state.go
Expand Up @@ -38,9 +38,9 @@ const (
// CookieRemember is used for cookies and form input names.
CookieRemember = "rm"

// FlashSuccessKey is used for storing sucess flash messages on the session
// FlashSuccessKey is used for storing success flash messages on the session
FlashSuccessKey = "flash_success"
// FlashErrorKey is used for storing sucess flash messages on the session
// FlashErrorKey is used for storing success flash messages on the session
FlashErrorKey = "flash_error"
)

Expand Down
2 changes: 1 addition & 1 deletion config.go
Expand Up @@ -77,7 +77,7 @@ type Config struct {

// LockAfter this many tries.
LockAfter int
// LockWindow is the waiting time before the number of attemps are reset.
// LockWindow is the waiting time before the number of attempts are reset.
LockWindow time.Duration
// LockDuration is how long an account is locked for.
LockDuration time.Duration
Expand Down
4 changes: 4 additions & 0 deletions go.sum
@@ -1,7 +1,9 @@
cloud.google.com/go v0.34.0 h1:eOI3/cP2VTU6uZLDYAoic+eyzzB9YyGmJ7eIjl8rOPg=
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/friendsofgo/errors v0.9.2 h1:X6NYxef4efCBdwI7BgS820zFaN7Cphrmb+Pljdzjtgk=
github.com/friendsofgo/errors v0.9.2/go.mod h1:yCvFW5AkDIL9qn7suHVLiI/gH228n7PC4Pn44IGoTOI=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
Expand All @@ -13,7 +15,9 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnk
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 h1:0GoQqolDA55aaLxZyTzK/Y2ePZzZTUrRacwib7cNsYQ=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d h1:TzXSXBo42m9gQenoE3b9BGiEpg5IG2JkU5FkPIawgtw=
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
Expand Down
2 changes: 1 addition & 1 deletion mocks/mocks.go
Expand Up @@ -113,7 +113,7 @@ func (u User) GetTOTPSecretKey() string { return u.TOTPSecretKey }
// GetSMSPhoneNumber from user
func (u User) GetSMSPhoneNumber() string { return u.SMSPhoneNumber }

// GetSMSPhoneNumber from user
// GetSMSPhoneNumberSeed from user
func (u User) GetSMSPhoneNumberSeed() string { return u.SMSPhoneNumberSeed }

// GetRecoveryCodes from user
Expand Down
2 changes: 1 addition & 1 deletion oauth2/oauth2.go
Expand Up @@ -78,7 +78,7 @@ func init() {
func (o *OAuth2) Init(ab *authboss.Authboss) error {
o.Authboss = ab

// Do annoying sorting on keys so we can have predictible
// Do annoying sorting on keys so we can have predictable
// route registration (both for consistency inside the router but
// also for tests -_-)
var keys []string
Expand Down
2 changes: 1 addition & 1 deletion storage.go
@@ -1,6 +1,6 @@
package authboss

// A concious decision was made to put all storer
// A conscious decision was made to put all storer
// and user types into this file despite them truly
// belonging to outside modules. The reason for this
// is because documentation-wise, it was previously
Expand Down
2 changes: 1 addition & 1 deletion user.go
Expand Up @@ -88,7 +88,7 @@ type ArbitraryUser interface {
}

// OAuth2User allows reading and writing values relating to OAuth2
// Also see MakeOAuthPID/ParseOAuthPID for helpers to fullfill the User
// Also see MakeOAuthPID/ParseOAuthPID for helpers to fulfill the User
// part of the interface.
type OAuth2User interface {
User
Expand Down
4 changes: 2 additions & 2 deletions validation_test.go
Expand Up @@ -72,10 +72,10 @@ func TestErrorList_Map(t *testing.T) {

unknownErrs := m[""]
if len(unknownErrs) != 1 {
t.Error("Wrong number of unkown errors:", len(unknownErrs))
t.Error("Wrong number of unknown errors:", len(unknownErrs))
}
if unknownErrs[0] != errAsploded {
t.Error("Wrong unkown error at 0:", unknownErrs[0])
t.Error("Wrong unknown error at 0:", unknownErrs[0])
}
}

Expand Down

0 comments on commit bf1c58d

Please sign in to comment.