Account created on 30 April 2009, over 15 years ago
#

Merge Requests

More

Recent comments

πŸ‡ΊπŸ‡ΈUnited States akalata

I've added an update that changes from creating a separate read-only element to disabling the input fields. Existing test for the site-wide form was updated, and a test for the personal contact form was added.

πŸ‡ΊπŸ‡ΈUnited States akalata

Setting 'Needs work' since this needs tests.

πŸ‡ΊπŸ‡ΈUnited States akalata

This got so close, but stalled at the finish line. I'm still getting used to gitlab but will hopefully have #134 available as an MR soon.

πŸ‡ΊπŸ‡ΈUnited States akalata

akalata β†’ made their first commit to this issue’s fork.

πŸ‡ΊπŸ‡ΈUnited States akalata

@poker10 I'm a bit confused by your feedback regarding the plain-text password at `$account->password = $pass;`, which I called out in #15. First you say that it's necessary to support contrib module tokens, but then you mention it as your "third thing" which makes it sound like something that needs to be changed?

If we don't want these changes in `$form_state`, for the reason that you've mentioned above, is there a recommended alternative? Seems like we would need to add a try/catch to every function that accepts $account or $form_state, and clear the password value before throwing any exceptions:

  • entity_form_submit_build_entity()
  • user_save()
  • entity_uri()
  • _user_mail_notify()
  • user_login_submit()
  • form_state_values_clean()

Given the level of disruption THAT might cause, is this worth even attempting?

πŸ‡ΊπŸ‡ΈUnited States akalata

@poker10 I hadn't refreshed the page to see your comment and the additional tag. reverted.

πŸ‡ΊπŸ‡ΈUnited States akalata

@hgoto Hashing the value of the submitted password at the earliest possible time is important because it lessens the window of opportunity for the value to get accidentally exposed when writing serialized data to a log file or the watchdog error table. With this change, we can at least prevent having an unhashed password as part of the created user entity before user_save is called.

I did notice a concerning but unused set of code that implies the sending of passwords via email in plain-text, but I'm guessing that this is quite old and was just not removed when the support for sending the password in the welcome email was removed.

// Add plain text password into user account to generate mail tokens.
$account->password = $pass;
πŸ‡ΊπŸ‡ΈUnited States akalata

akalata β†’ made their first commit to this issue’s fork.

πŸ‡ΊπŸ‡ΈUnited States akalata

Works as expected, though I'm not sure about the assumption of a `token` view mode -- but I think that's more of a foundational approach with "how do we handle tokens that might need to respond to settings?".

πŸ‡ΊπŸ‡ΈUnited States akalata

I'm seeing the same behavior as @vegardjo - multiple content types that are successfully using a view mode template, and one that does not. In my case the view mode is list_card and the content type is job_posting. I also have an event content type which is working correctly - indicating that it isn't the bundle name that is the issue.

The site has no custom node template suggestions or even a custom node template.

FILE NAME SUGGESTIONS:
* node--view--search--page.html.twig
* node--view--search.html.twig
* node--67--list-card.html.twig
* node--67.html.twig
* node--event--list-card.html.twig
* node--event.html.twig
x node--list-card.html.twig
* node.html.twig

vs.

FILE NAME SUGGESTIONS:
* node--view--search--page.html.twig
* node--view--search.html.twig
* node--66--list-card.html.twig
* node--66.html.twig
* node--job-posting--list-card.html.twig
* node--job-posting.html.twig
* node--list-card.html.twig
x node.html.twig

πŸ‡ΊπŸ‡ΈUnited States akalata

Shouldn't the status of this issue then be something other than "fixed"?

πŸ‡ΊπŸ‡ΈUnited States akalata

Screenshot with MR applied:

πŸ‡ΊπŸ‡ΈUnited States akalata

akalata β†’ created an issue.

πŸ‡ΊπŸ‡ΈUnited States akalata

+1 for some of these changes!

* Custom theme hook suggestion for the block and menu
* Make the initial visibility level follow the active menu item

πŸ‡ΊπŸ‡ΈUnited States akalata

I am also getting a similar error if I have the TailwindCSS Utility module enabled.

TypeError: Drupal\cl_server\Util::isRenderController(): Argument #1 ($request) must be of type Symfony\Component\HttpFoundation\Request, null given, called in /var/www/html/web/modules/contrib/cl_server/src/FileUrlGenerator.php on line 50 in Drupal\cl_server\Util::isRenderController() (line 22 of modules/contrib/cl_server/src/Util.php).

Production build 0.71.5 2024