MCPcopy
hub / github.com/pocketbase/pocketbase / SetMethod

Method SetMethod

core/mfa_model.go:102–104  ·  view source on GitHub ↗

SetMethod updates the "method" record field value.

(method string)

Source from the content-addressed store, hash-verified

100
101// SetMethod updates the "method" record field value.
102func (m *MFA) SetMethod(method string) {
103 m.Set("method", method)
104}
105
106// Created returns the "created" record field value.
107func (m *MFA) Created() types.DateTime {

Callers 8

TestMFAMethodFunction · 0.95
TestMFAPreValidateFunction · 0.95
TestMFAValidateHookFunction · 0.95
checkMFAFunction · 0.95
StubMFARecordsFunction · 0.95

Calls 1

SetMethod · 0.65

Tested by 6

TestMFAMethodFunction · 0.76
TestMFAPreValidateFunction · 0.76
TestMFAValidateHookFunction · 0.76