feat: implement first batch im enhancements
This commit is contained in:
@@ -221,6 +221,7 @@ type testSecurityStore struct {
|
||||
bumpedUser types.Uid
|
||||
|
||||
realName *types.RealNameVerification
|
||||
realNameAppeal *types.RealNameAppeal
|
||||
actionToken *types.ActionToken
|
||||
independentPassword *types.IndependentPassword
|
||||
youthMode *types.YouthModeSettings
|
||||
@@ -276,6 +277,17 @@ func (s *testSecurityStore) CreateRealNameSubmission(_ types.TenantID, rv *types
|
||||
return s.err
|
||||
}
|
||||
|
||||
func (s *testSecurityStore) CreateRealNameAppeal(_ types.TenantID, appeal *types.RealNameAppeal) (*types.RealNameAppeal, error) {
|
||||
s.realNameAppeal = appeal
|
||||
if s.err != nil {
|
||||
return nil, s.err
|
||||
}
|
||||
now := time.Now().UTC().Round(time.Millisecond)
|
||||
appeal.CreatedAt = now
|
||||
appeal.UpdatedAt = now
|
||||
return appeal, nil
|
||||
}
|
||||
|
||||
func (s *testSecurityStore) CreateActionToken(_ types.TenantID, token *types.ActionToken) error {
|
||||
s.actionToken = token
|
||||
return s.err
|
||||
|
||||
Reference in New Issue
Block a user