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.
akalata β created an issue.
akalata β created an issue.
akalata β created an issue.
akalata β created an issue.
Setting 'Needs work' since this needs tests.
akalata β created an issue.
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.
akalata β changed the visibility of the branch 601776 to hidden.
akalata β made their first commit to this issueβs fork.
akalata β made their first commit to this issueβs fork.
@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?
@poker10 I hadn't refreshed the page to see your comment and the additional tag. reverted.
@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;
akalata β made their first commit to this issueβs fork.
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?".
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
xjm β credited akalata β .
Shouldn't the status of this issue then be something other than "fixed"?
Screenshot with MR applied:
akalata β created an issue.
akalata β created an issue.
+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
akalata β created an issue.
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).
mherchel β credited akalata β .
benjifisher β credited akalata β .