go fmt
This commit is contained in:
parent
d0e6625d6e
commit
044c0df428
|
@ -121,7 +121,7 @@ type Account struct {
|
||||||
// When was this account suspended (eg., don't allow it to log in/post, don't accept media/posts from this account)
|
// When was this account suspended (eg., don't allow it to log in/post, don't accept media/posts from this account)
|
||||||
SuspendedAt time.Time `pg:"type:timestamp"`
|
SuspendedAt time.Time `pg:"type:timestamp"`
|
||||||
// How much do we trust this account 🤔
|
// How much do we trust this account 🤔
|
||||||
TrustLevel int
|
TrustLevel int
|
||||||
// Should we hide this account's collections?
|
// Should we hide this account's collections?
|
||||||
HideCollections bool
|
HideCollections bool
|
||||||
// id of the user that suspended this account through an admin action
|
// id of the user that suspended this account through an admin action
|
||||||
|
|
|
@ -112,9 +112,9 @@ type User struct {
|
||||||
EncryptedOTPSecretSalt string
|
EncryptedOTPSecretSalt string
|
||||||
OTPRequiredForLogin bool
|
OTPRequiredForLogin bool
|
||||||
OTPBackupCodes []string
|
OTPBackupCodes []string
|
||||||
ConsumedTimestamp int
|
ConsumedTimestamp int
|
||||||
RememberToken string
|
RememberToken string
|
||||||
SignInToken string
|
SignInToken string
|
||||||
SignInTokenSentAt time.Time `pg:"type:timestamp"`
|
SignInTokenSentAt time.Time `pg:"type:timestamp"`
|
||||||
WebauthnID string
|
WebauthnID string
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,9 +36,7 @@ func (suite *OauthTestSuite) SetupSuite() {
|
||||||
logrus.Panicf("error encrypting user pass: %s", err)
|
logrus.Panicf("error encrypting user pass: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
suite.testAccount = >smodel.Account{
|
suite.testAccount = >smodel.Account{}
|
||||||
|
|
||||||
}
|
|
||||||
suite.testUser = >smodel.User{
|
suite.testUser = >smodel.User{
|
||||||
EncryptedPassword: string(encryptedPassword),
|
EncryptedPassword: string(encryptedPassword),
|
||||||
Email: "user@localhost",
|
Email: "user@localhost",
|
||||||
|
|
Loading…
Reference in New Issue