MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / verified

Method verified

examples/loco_starter/src/models/users.rs:245–248  ·  view source on GitHub ↗

Records the verification time when a user verifies their email and updates it in the database. This method sets the timestamp when the user successfully verifies their email. # Errors when has DB query error

(mut self, db: &DatabaseConnection)

Source from the content-addressed store, hash-verified

243 ///
244 /// when has DB query error
245 pub async fn verified(mut self, db: &DatabaseConnection) -> ModelResult<Model> {
246 self.email_verified_at = ActiveValue::set(Some(Local::now().naive_local()));
247 Ok(self.update(db).await?)
248 }
249
250 /// Resets the current user password with a new password and
251 /// updates it in the database.

Callers 2

registerFunction · 0.45
verifyFunction · 0.45

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected