A user's security question.

WHMCS provides a method for administrators and clients to provide greater security to their accounts by answering a security question upon login. This object models a single security question. The security question's answer is stored encrypted in the client's record.

class SecurityQuestion extends AbstractModel

Properties summary

Type Property Description
protected $table
int $id A security question's unique id.
string $question A security question's contents.
Carbon $createdAt The date a security question was created.
Carbon $updatedAt The date a security question was last updated.
Collection|Client[] $clients The clients that must answer this security question upon login.

Methods summary

Return Type Method Name Description
string getQuestionAttribute(string $question) Decrypt security questions from storage.
setQuestionAttribute(string $question) Encrypt security questions for storage.
HasMany clients() A security question may be in use by many clients.

Details

string getQuestionAttribute (string $question)

Decrypt security questions from storage.

Parameters

string $question

Return Value

string

setQuestionAttribute (string $question)

Encrypt security questions for storage.

Parameters

string $question

HasMany clients ()

A security question may be in use by many clients.

Return Value

HasMany