Skip to content

Instantly share code, notes, and snippets.

View brianlarson's full-sized avatar

Brian Larson brianlarson

View GitHub Profile
@samhernandez
samhernandez / haxor.twig
Last active August 24, 2025 16:01
Craft 3 gain access to admin account for support cases or when owner loses access
{#
Resets the username, password, and email address
of the first found Admin account in case of
lost admin access or for support cases.
#}
{% set values = {
username: 'me',
password: craft.app.security.hashPassword('mypassword'),
email: 'me@site.com',
passwordResetRequired: 0