Today Real Name shows a warning when you doesn't use the [user:name-raw] token in the email messages. It's cool already, because it remembers you to provide login information for the user that just registered in your site.
But I use Email Registration :-) So, for me, it doesn't makes sense because in my app the login is the email - there's no need to remeber usernames. So, it would be good to have a way to control the exhibition of this messages with a boolean variable that, if set to TRUE
, makes Real Name avoid the annoying warning.
So, I'm gonna write the patch and try to attach the file here, since there's no PR workflow =(
Comment | File | Size | Author |
---|---|---|---|
#5 | allow_no_raw_usernames-2453291-5.patch | 3.4 KB | joelwallis |
#4 | allow_no_raw_usernames-2453291-4.patch | 1.04 KB | joelwallis |
#2 | allow_no_raw_usernames-2453291-2.patch | 1.05 KB | joelwallis |
Comments
Comment #1
joelwallis CreditAttribution: joelwallis commentedComment #2
joelwallis CreditAttribution: joelwallis commentedThis is a patch that already works to me. Please check if the given variable name are self descriptive and the comments provide useful help for those looking to the code.
Comment #3
Dave ReidInteresting. I'd probably reverse the variable name to be a little more clear. Something more like !variable_get('realname_suppress_user_name_mail_validation', FALSE)
Comment #4
joelwallis CreditAttribution: joelwallis commentedNow with suggested variable name.
Comment #5
joelwallis CreditAttribution: joelwallis commentedI forgot to add the check to the requirements definition at
realname.install
.Comment #6
joelwallis CreditAttribution: joelwallis commentedSo, what about this issue?
Comment #7
hass CreditAttribution: hass commented@Dave: why hiding this from ui? We should make this a setting, including variable uninstall.
Comment #8
hass CreditAttribution: hass commentedComment #10
hass CreditAttribution: hass commentedComment #13
nickonom CreditAttribution: nickonom commentedComing from #2765329: Suppress "replace token" messages when Email Registration module involved as I didn't know about this issue. Well, I wouldn't even create one if the problem was not persisting. It is still there on 7.x-1.3 despite:
I am using this module with Email Registration and couldn't find any setting to suppress those messages. Can you explain where exactly I can suppress them?
Comment #14
nickonom CreditAttribution: nickonom commentedMaking this active again as it has not probably been committed yet.
Comment #15
hass CreditAttribution: hass commentedSee realname settings page.
Comment #16
nickonom CreditAttribution: nickonom commentedSorry for bothering again, but either The real Name settings page has only one field for replacing REALLY real name, which is in my case
[user:field-name] [user:field-surname]
and the complain on the user settings page is
The Body does not contain the [user:name-raw] token, which is necessary when using username for login.
and on the status page:
Replace the token [user:name] with [user:name-raw] in e-mail template, if using username for login.
Maybe I am missing something here, but I really need to user person's first name and last name combination as real name and his/her e-mail address as login username and at the same time get rid of those annoying messages. Could you please explain what I am doing wrong?
Comment #17
hass CreditAttribution: hass commentedYou need v1.3
Comment #18
nickonom CreditAttribution: nickonom commentedthanks hass. finally after downloading the new version of Real Name and applying the realname_update_7001 the messages are gone: