Skip to content

Conversation

@Mic92
Copy link

@Mic92 Mic92 commented Nov 1, 2025

Allow templates to specify a default password hash algorithm via the 'helper' attribute. When set, new password fields will default to this hash type instead of CLEAR.

Example template usage:

{
  "attributes": {
    "userPassword": {
      "display": "Password",
      "helper": "ARGON2ID",
      "order": 1
    }
  }
}

Allow templates to specify a default password hash algorithm via the
'helper' attribute. When set, new password fields will default to
this hash type instead of CLEAR.

Example template usage:
{
  "attributes": {
    "userPassword": {
      "display": "Password",
      "helper": "ARGON2ID",
      "order": 1
    }
  }
}
id="userpassword_hash_{{$index}}_{{ $template?->name }}"
name="{{ $o->name_lc }}[{{ $attrtag }}{{ Entry::TAG_HELPER }}][]"
:value="old($o->name_lc.'.'.$attrtag.Entry::TAG_HELPER.'.'.$index,$o->hash($o->values->dot()->get($dotkey) ?: '')->id())"
:value="old($o->name_lc.'.'.$attrtag.Entry::TAG_HELPER.'.'.$index,$template?->attribute($o->name_lc)?->get('helper') ?: $o->hash($o->values->dot()->get($dotkey) ?: '')->id())"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be probably documented somewhere? Let me know where.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant