Superuser Can't Change User Profile - user-controls

Despite being a Super User (Joomla 3.4), each time I try to modify a user's profile, e.g., edit their name or assign them to a different group, I get this message:
The passwords you entered do not match. Please enter your desired password in the password field and confirm your entry by entering it in the confirm password field.
I am not entering a password. It almost looks like Joomla (or my Mac) is autofilling the first password entry and wants me to fill in the confirming password entry.
Please advise.

delete the auto-filled password and save - this is a browser thing

Related

User input login then continue directing through macros possible?

I'm attempting to run a macro that's end result would be landing on the page with the needed information after a series of searches. So far, my macro opens the webpage, but it requires the user to input their username and password. Would it be possible for the macro to open the webpage, then the user would manually enter their login info, and finally my macro would take over again and lead them to the correct results?
I feel comfortable being able to get them from the post-login screen to the results, but am stuck on the login page.
Why not have the user first enter username and password and other relevant info, then the macro contacts the webpage submits user & password and just continues.

Where does Excel get Username from in "Environ("Username")"? And how to edit it?

I'm utilizing the Environ("Username") function in an excel file to determine the user that is logged in. But I thought that the username is being extracted from the mail id of the user logged in. But I have noticed that for some of my colleagues, the username and the mail id doesn't match.
That is when my colleague pointed out that the username in Environ("Username") and the Alias in Your info section*(Settings>Accounts>Your info)* in the Windows settings match.
So I was wondering if this is where the Username is being extracted from, and if yes how can we edit it?
P.S: this is in reference to an Office 365 account.
Press Windows+R, and type cmd to launch a command prompt. From there, type set and press enter.
These are all the variables that can be retrieved by Environ()
Not sure you can edit that: you can type SET username = xyz in the command prompt, then if do a set, il will list the new value, but that seems to be a local copy, not visible from Excel VBA for example.
This is an incomplete answer and only meant as help in pointing to a more final answer:
It returns the user name which matches what you find under C:\Users\.
Patrick Honorez' answer provides you with the active user if there are more than one profiles available.

Cucumber: Is it possible for a step to detect tags?

I am in the midst of writing a test suite for a password management page. For the scenarios, the majority should not actually change the password, but some do. I have used the tag #changePassword so that I can optionally run those scenarios or not.
The problem I run into is trying not to write duplicate steps if possible.
Simplified sample scenarios:
#changePassword
Scenario: successful change
Given the Manage Password page is loaded
And a new password is generated
When the old password is entered
And the new password is entered
And the confirm password is entered
And the OK button is clicked
Then the password has changed
Scenario: failed change (missing confirm)
Given the Manage Password page is loaded
And a new password is generated
When the old password is entered
And the new password is entered
And the OK button is clicked
Then the password change fails
The majority of the steps are identical between the two versions, the main variance that I am concerned with is the And a new password is generated step. In the first scenario, I want the new password to be saved as the user's password. In the second scenario I want the new password discarded at the end.
Something like: (psuedo-code)
And /^a new password is generated$/ do
old password = user's password
new password = generate random new password
confirm password = new password
if tag #changePassword is present
user's password is set as the new password
end
end
Is there anyway to make this possible? I can write a second step like And a new password to be saved is generated or something, but for readability and for the non-tech savvy co-workers, using the same step is the better option. (I have found in the past using different phrases to describe similar processes, that to the user accomplishes the exact same thing, has caused confusion. Trying to avoid workplace confusion if possible.)
Side note: Using Cucumber with Ruby (with Watir), if that makes any difference (does it?)
It's an ugly solution, but can you use a tagged hook to set a variable and then an if statement in the method that saves/doesn't save based on the value of that variable?

When the form is re-displayed - often the "password" field is blank. Why?

There's a strange tradition to ask user to re-enter his password when the registration form has failed the validation.
E.g. the CAPTCHA value was wrong and now the password field is empty: users have to re-enter it.
What's the reason for that? Is it really that unsafe to put the password back to the input, even through HTTPS?
Putting a value in the password input field would require it being in plain text in the html source.

Force password change on email activation

Today I'm looking for a recipe to force drupal to change a password on activation email page on first login.
I tried to alter my user_reset_pass form, and I know how to print password confirmation fields, but I don't have any idea how to override verification of that form to check if password is set and proper value.
Maybe You can give me some hints to do that?
Check this module out:
Force Password Change

Resources