- <%= ts("If you've forgotten your password, we can send instructions that will allow you to reset it.") %>
- <%= ts("Please tell us the user name or email address you used when you signed up for your Archive account.") %>
-
- <%= ts("%{minimum} to %{maximum} characters (A-Z, a-z, _, 0-9 only), no spaces, cannot begin or end with underscore (_)",
+ <%= t(".username_requirements",
minimum: ArchiveConfig.LOGIN_LENGTH_MIN,
maximum: ArchiveConfig.LOGIN_LENGTH_MAX) %>
<% end %>
diff --git a/app/views/users/sessions/_passwd_small.html.erb b/app/views/users/sessions/_passwd_small.html.erb
index 1d49f0b7704..3ebcdeb0a22 100644
--- a/app/views/users/sessions/_passwd_small.html.erb
+++ b/app/views/users/sessions/_passwd_small.html.erb
@@ -1,32 +1,29 @@
-<% # We need to override the ids to avoid accessibility issues on the new user
- # session page, which has a second user session form %>
+<%# We need to override the ids to avoid accessibility issues on the new user session page,
+which has a second user session form %>
<%= form_for(User.new, url: user_session_path, html: { id: "new_user_session_small" }) do |f| %>
-
-
- <%= f.label :login, ts("User name or email:"),
- for: "user_session_login_small" %>
diff --git a/config/initializers/rack_attack.rb b/config/initializers/rack_attack.rb
index 248d13f10d2..4eaf44002d5 100644
--- a/config/initializers/rack_attack.rb
+++ b/config/initializers/rack_attack.rb
@@ -69,7 +69,7 @@ class Rack::Attack
req.ip if req.path == "/users/login" && req.post?
end
- # Throttle POST requests to /users/login by login param (user name or email)
+ # Throttle POST requests to /users/login by login param (username or email)
#
# Key: "rack::attack:#{Time.now.to_i/:period}:logins/email:#{login}"
#
diff --git a/config/locales/controllers/en.yml b/config/locales/controllers/en.yml
index 2fa39e73979..8cf2105bea9 100644
--- a/config/locales/controllers/en.yml
+++ b/config/locales/controllers/en.yml
@@ -116,6 +116,20 @@ en:
muted: You have muted the user %{name}.
destroy:
unmuted: You have unmuted the user %{name}.
+ pseuds:
+ create:
+ already_have_pseud_with_name: You already have a pseud with that name.
+ successfully_created: Pseud was successfully created.
+ destroy:
+ cannot_delete_default: You cannot delete your default pseudonym, sorry!
+ cannot_delete_matching_username: You cannot delete the pseud matching your username, sorry!
+ not_deleted: The pseud was not deleted.
+ successfully_deleted: The pseud was successfully deleted.
+ show:
+ could_not_find_pseud: Couldn't find pseud '%{pseud}'
+ could_not_find_user: Couldn't find user '%{username}'
+ update:
+ successfully_updated: Pseud was successfully updated.
questions:
not_found: Sorry, we couldn't find the FAQ you were looking for.
update_positions:
diff --git a/config/locales/devise/en.yml b/config/locales/devise/en.yml
index e6839d9f580..fc4ca045161 100644
--- a/config/locales/devise/en.yml
+++ b/config/locales/devise/en.yml
@@ -9,20 +9,20 @@ en:
admin:
already_authenticated: You are already signed in.
inactive: Your account is not activated yet.
- invalid: The password or admin user name you entered doesn't match our records.
+ invalid: The password or admin username you entered doesn't match our records.
last_attempt: You have one more attempt before your account is locked.
locked: Your account is locked.
- not_found_in_database: The password or admin user name you entered doesn't match our records.
+ not_found_in_database: The password or admin username you entered doesn't match our records.
timeout: Your session expired. Please sign in again to continue.
unauthenticated: You need to sign in or sign up before continuing.
unconfirmed: You have to confirm your email address before continuing.
user:
already_authenticated: You are already signed in.
inactive: You'll need to activate your account before you can log in. Please check your email or contact support.
- invalid: The password or user name you entered doesn't match our records. Please try again or reset your password. If you still can't log in, please visit Problems When Logging In for help.
+ invalid: The password or username you entered doesn't match our records. Please try again or reset your password. If you still can't log in, please visit Problems When Logging In for help.
last_attempt: You have one more attempt before your account is locked.
locked: Your account has been locked for 5 minutes due to too many failed login attempts.
- not_found_in_database: The password or user name you entered doesn't match our records. Please try again or reset your password. If you still can't log in, please visit Problems When Logging In for help.
+ not_found_in_database: The password or username you entered doesn't match our records. Please try again or reset your password. If you still can't log in, please visit Problems When Logging In for help.
timeout: Your session expired. Please sign in again to continue.
unauthenticated: You need to sign in or sign up before continuing.
unconfirmed: You have to activate your account before continuing. Please check your email for the activation link.
diff --git a/config/locales/mailers/en.yml b/config/locales/mailers/en.yml
index 16c85b34011..88f18a01871 100644
--- a/config/locales/mailers/en.yml
+++ b/config/locales/mailers/en.yml
@@ -135,8 +135,8 @@ en:
tos_violation: If your work was hidden due to being in violation of the Archive of Our Own's Terms of Service (%{tos_url}), you will be required to take action to correct the violation. Failure to bring your work into compliance with the Terms of Service may lead to your work being deleted from the Archive.
tos: Terms of Service
anonymous_or_unrevealed_notification:
- anonymous_info: Anonymous works are included in tag listings, but not on your works page. On the work, your user name will be replaced with "Anonymous."
- anonymous_unrevealed_info: The collection maintainers may later reveal your work but leave it anonymous. People who subscribe to you will not be notified of this change. Your work will be included in tag listings, but not on your works page. On the work, your user name will be replaced with "Anonymous."
+ anonymous_info: Anonymous works are included in tag listings, but not on your works page. On the work, your username will be replaced with "Anonymous."
+ anonymous_unrevealed_info: The collection maintainers may later reveal your work but leave it anonymous. People who subscribe to you will not be notified of this change. Your work will be included in tag listings, but not on your works page. On the work, your username will be replaced with "Anonymous."
changed_status:
anonymous:
html: The collection maintainers of %{collection_link} have changed the status of your work %{work_link} to anonymous.
diff --git a/config/locales/models/en.yml b/config/locales/models/en.yml
index 007b5168fba..4c8fd6a81c7 100644
--- a/config/locales/models/en.yml
+++ b/config/locales/models/en.yml
@@ -182,8 +182,8 @@ en:
login:
admin_must_use_default: must use the default. Please contact your chairs to use something else.
changed_too_recently:
- one: can only be changed once per day. You last changed your user name on %{renamed_at}.
- other: can only be changed once every %{count} days. You last changed your user name on %{renamed_at}.
+ one: can only be changed once per day. You last changed your username on %{renamed_at}.
+ other: can only be changed once every %{count} days. You last changed your username on %{renamed_at}.
invalid: must be %{min_login} to %{max_login} characters (A-Z, a-z, _, 0-9 only), no spaces, cannot begin or end with underscore (_).
password_confirmation:
confirmation: doesn't match new password.
diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml
index f09bca387df..a56c4ceffbb 100644
--- a/config/locales/views/en.yml
+++ b/config/locales/views/en.yml
@@ -84,13 +84,40 @@ en:
find:
email: Enter all or part of an email address
token: Enter an invite token
- user_name: Enter a user name
+ username: Enter a username
index:
- email: Enter all or part of an email address
+ find:
+ email: Enter all or part of an email address
+ enter_invite_token: 'Enter an invite token:'
+ enter_username: 'Enter a username:'
+ go: Go
+ heading: Track invitations
+ landmark_submit: Submit
+ grant_invites:
+ all: All
+ generate_invitations: Generate invitations
+ heading: Give invite codes to current users
+ landmark_submit: Submit
+ number_of_invitations: 'Number of invitations:'
+ users: 'Users:'
+ with_no_unused: With no unused invitations
+ invite_from_queue:
+ heading_html: Send invite codes to people in our %{invitations_queue_link}
+ invitations_queue: invitations queue
+ invite_from_queue: Invite from queue
+ number_to_invite: 'Number of people to invite:'
+ requests_in_queue:
+ one: There is 1 request in the queue.
+ other: There are %{count} requests in the queue.
navigation:
queue: Manage Queue
requests: Manage Requests
page_heading: Invite New Users
+ send_to_email:
+ description: 'Send an invite code to the following email address:'
+ heading: Send to Email
+ invite_by_email: invite by email
+ invite_user: Invite user
admin_nav:
ao3_news: AO3 News
archive_faq: Archive FAQ
@@ -308,14 +335,14 @@ en:
page_heading: Set My Admin Password
submit: Set Admin Password
new:
- instructions: If you've forgotten or would like to change your admin password, we can send instructions that will allow you to reset it. Please tell us the user name for your admin account.
+ instructions: If you've forgotten or would like to change your admin password, we can send instructions that will allow you to reset it. Please tell us the username for your admin account.
page_heading: Forgotten your admin password?
- reset_login_html: Admin user name
+ reset_login_html: Admin username
submit: Reset Admin Password
sessions:
new:
label:
- login: Admin user name
+ login: Admin username
password: Admin password
landmark:
reset: Reset password
@@ -379,6 +406,12 @@ en:
next: Next Post
previous: Previous Post
page_heading: AO3 News
+ admin_sessions:
+ new:
+ admin_password: Admin password
+ admin_username: Admin username
+ log_in_as_admin: Log in as admin
+ page_heading: Log in as Admin
admins:
index:
confidentiality_reminder: You are now logged in as an admin. That means you will probably encounter information that is personal or confidential (e.g. usernames, email and IP addresses, creator names on anonymous works, etc). Please do not use this information in ways unrelated to your OTW role. If you have questions about what you can or cannot do with information you see here, contact your committee chair(s).
@@ -463,6 +496,22 @@ en:
comments_on_works: delete or hide comments they previously left on your works; you can delete these individually
hide_works: hide their works or bookmarks from you
intro: 'Blocking a user will not:'
+ challenge:
+ gift_exchange:
+ challenge_signups:
+ close_offers_html: Close Offers %{up_arrow}
+ close_requests_html: Close Requests %{up_arrow}
+ heading:
+ for_collection: Sign-ups for collection %{collection}
+ for_search: Sign-up
+ navigation:
+ download_csv: Download (CSV)
+ search: search
+ search_by_pseud: Search By Pseud
+ no_sign_ups_yet: No sign-ups yet!
+ offers_html: Offers %{down_arrow}
+ particpant_username: username
+ requests_html: Requests %{down_arrow}
challenge_signups:
signup_form:
notice:
@@ -1360,6 +1409,17 @@ en:
invitations:
invitation:
email_address_label: Enter an email address
+ user_invitations:
+ copy_and_use: copy and use
+ copy_link: Copy Link
+ delete: Delete
+ delete_confirmation: Are you sure you want to delete this invitation?
+ external_author: External Author
+ invitation_information: Invitation Information
+ list_of_your_invitations: List of your invitation tokens and information regarding who you shared them with, along with the option to share unused tokens.
+ sent_to: Sent To
+ token: Token
+ username: Username
invite_requests:
index_open:
add_to_list: Add me to the list
@@ -1577,7 +1637,7 @@ en:
turn_on_new_user_help: Turn the new user help banner back on.
navigation:
blocked_users: Blocked Users
- change_my_username: Change My User Name
+ change_my_username: Change My Username
edit_my_profile: Edit My Profile
landmark: Navigation
manage_my_pseuds: Manage My Pseuds
@@ -1839,6 +1899,13 @@ en:
edit_multiple: Edit Works
invitations: Invitations
new_work: Post New
+ passwords:
+ new:
+ email_or_username_html: Email address %{or} username
+ instructions: If you've forgotten your password, we can send instructions that will allow you to reset it. Please tell us the username or email address you used when you signed up for your Archive account.
+ or: or
+ page_heading: Forgotten your password?
+ reset_password: Reset Password
registrations:
legal:
agreement_confirm: Yes, I have read the Terms of Service, including the Content Policy and Privacy Policy, and agree to them.
@@ -1857,6 +1924,16 @@ en:
user: User Details
submit: Create Account
wait: Please wait...
+ passwd:
+ confirm_password: Confirm password
+ confirm_password_validation: Please enter the same password in both fields.
+ password: Password
+ password_requirements: "%{minimum} to %{maximum} characters"
+ password_validation: Please enter a password! (At least %{minimum} letters long, please.)
+ username: Username
+ username_requirements: "%{minimum} to %{maximum} characters (A-Z, a-z, _, 0-9 only), no spaces, cannot begin or end with underscore (_)"
+ username_validation: You need a username! (At least %{minimum} letters long, please.)
+ valid_email: Valid email
sessions:
greeting:
nav:
@@ -1886,7 +1963,7 @@ en:
warning: This site is in beta. Things may break or crash without notice.
login:
create_account: Create an account now
- forgot: Forgot your password or user name? %{reset_password_link}.
+ forgot: Forgot your password or username? %{reset_password_link}.
log_in: Log in
no_account: Don't have an account? %{join_link}.
request_invite: Request an invitation to join
@@ -1899,6 +1976,20 @@ en:
signup: Or join us for free - it's easy.
sorry: Sorry!
work_unavailable: This work is only available to registered users of the Archive.
+ passwd:
+ landmark_submit: Submit
+ log_in: Log in
+ password: 'Password:'
+ remember_me: Remember me
+ username_or_email: 'Username or email:'
+ passwd_small:
+ create_an_account: Create an Account
+ forgot_password: Forgot password?
+ get_an_invitation: Get an Invitation
+ log_in: Log In
+ password: 'Password:'
+ remember_me: Remember Me
+ username_or_email: 'Username or email:'
show:
login_banner:
contact_abuse: contact our Policy & Abuse team
diff --git a/factories/users.rb b/factories/users.rb
index 8d83adafefb..61da64a1b6d 100644
--- a/factories/users.rb
+++ b/factories/users.rb
@@ -26,7 +26,7 @@
confirmed_at { nil }
end
- # User names used in mailer preview should be unique but recognizable as user names
+ # Usernames used in mailer preview should be unique but recognizable as usernames
trait :for_mailer_preview do
login { "User#{Faker::Alphanumeric.alpha(number: 8)}" }
end
diff --git a/features/admins/admin_invitations.feature b/features/admins/admin_invitations.feature
index 30e5d1de468..3b54cfe2190 100644
--- a/features/admins/admin_invitations.feature
+++ b/features/admins/admin_invitations.feature
@@ -306,7 +306,7 @@ Feature: Admin Actions to Manage Invitations
And "dax" has "2" invitations
And I am logged in as an admin
When I follow "Invite New Users"
- And I fill in "Enter a user name" with "dax"
+ And I fill in "Enter a username" with "dax"
And I press "Go"
Then I should see "copy and use"
When I follow "Invite New Users"
@@ -332,10 +332,10 @@ Feature: Admin Actions to Manage Invitations
Scenario: An admin can't find a invitation for a nonexistent user
Given I am logged in as an admin
And I follow "Invite New Users"
- When I fill in "Enter a user name" with "dax"
+ When I fill in "Enter a username" with "dax"
And I press "Go"
Then I should see "No results were found. Try another search"
- When I fill in "Enter a user name" with ""
+ When I fill in "Enter a username" with ""
And I fill in "Enter all or part of an email address" with "nonexistent@domain.com"
And I press "Go"
Then I should see "No results were found. Try another search"
@@ -370,7 +370,7 @@ Feature: Admin Actions to Manage Invitations
And "dax" has "2" invitations
And I am logged in as a "support" admin
When I follow "Invite New Users"
- And I fill in "Enter a user name" with "dax"
+ And I fill in "Enter a username" with "dax"
And I press "Go"
Then I should see "copy and use"
When I follow "Invite New Users"
diff --git a/features/admins/authenticate_admins.feature b/features/admins/authenticate_admins.feature
index d8aa3a30eee..fa961a11045 100644
--- a/features/admins/authenticate_admins.feature
+++ b/features/admins/authenticate_admins.feature
@@ -6,21 +6,21 @@ Feature: Authenticate Admin Users
| login | password |
| Zooey | adminpassword |
When I go to the home page
- And I fill in "User name or email" with "Zooey"
+ And I fill in "Username or email" with "Zooey"
And I fill in "Password" with "adminpassword"
And I press "Log In"
- Then I should see "The password or user name you entered doesn't match our records"
+ Then I should see "The password or username you entered doesn't match our records"
Scenario: Ordinary user cannot log in or reset password as admin.
Given the following activated user exists
| login | password |
| dizmo | wrangulator |
When I go to the admin login page
- And I fill in "Admin user name" with "dizmo"
+ And I fill in "Admin username" with "dizmo"
And I fill in "Admin password" with "wrangulator"
And I press "Log In as Admin"
Then I should not see "Successfully logged in"
- And I should see "The password or admin user name you entered doesn't match our records."
+ And I should see "The password or admin username you entered doesn't match our records."
When I am logged in as "dizmo" with password "wrangulator"
And I go to the new admin password page
Then I should be on the homepage
@@ -62,17 +62,17 @@ Feature: Authenticate Admin Users
| Zooey | adminpassword |
And I have loaded the "roles" fixture
When I go to the admin login page
- And I fill in "Admin user name" with "Zooey"
+ And I fill in "Admin username" with "Zooey"
And I fill in "Admin password" with "adminpassword"
And I press "Log In as Admin"
Then I should see "Successfully logged in"
- Scenario: Admin user name is case insensitive.
+ Scenario: Admin username is case insensitive.
Given the following admin exists
| login | password |
| TheMadAdmin | adminpassword |
When I go to the admin login page
- And I fill in "Admin user name" with "themadadmin"
+ And I fill in "Admin username" with "themadadmin"
And I fill in "Admin password" with "adminpassword"
And I press "Log In as Admin"
Then I should see "Successfully logged in"
@@ -82,10 +82,10 @@ Feature: Authenticate Admin Users
| login | password |
| Zooey | adminpassword |
When I go to the admin login page
- And I fill in "Admin user name" with "Zooey"
+ And I fill in "Admin username" with "Zooey"
And I fill in "Admin password" with "wrongpassword"
And I press "Log In"
- Then I should see "The password or user name you entered doesn't match our records."
+ Then I should see "The password or username you entered doesn't match our records."
Scenario: Admin resets password.
Given the following admin exists
@@ -95,7 +95,7 @@ Feature: Authenticate Admin Users
When I go to the admin login page
And I follow "Forgot admin password?"
Then I should see "Forgotten your admin password?"
- When I fill in "Admin user name" with "admin"
+ When I fill in "Admin username" with "admin"
And I press "Reset Admin Password"
Then I should see "Check your email for instructions on how to reset your password."
And 1 email should be delivered to "admin@example.com"
@@ -115,7 +115,7 @@ Feature: Authenticate Admin Users
When I go to the admin login page
And I follow "Forgot admin password?"
Then I should see "Forgotten your admin password?"
- When I fill in "Admin user name" with "admin"
+ When I fill in "Admin username" with "admin"
And I press "Reset Admin Password"
Then I should see "Check your email for instructions on how to reset your password."
And 1 email should be delivered to "admin@example.com"
@@ -130,7 +130,7 @@ Feature: Authenticate Admin Users
Scenario: Locked admin cannot sign in.
Given the admin "admin" is locked
When I go to the admin login page
- And I fill in "Admin user name" with "admin"
+ And I fill in "Admin username" with "admin"
And I fill in "Admin password" with "adminpassword"
And I press "Log In as Admin"
Then I should see "Your account is locked."
@@ -141,7 +141,7 @@ Feature: Authenticate Admin Users
And all emails have been delivered
And I am on the admin login page
When I follow "Forgot admin password?"
- And I fill in "Admin user name" with "admin"
+ And I fill in "Admin username" with "admin"
And I press "Reset Admin Password"
Then I should see "Check your email for instructions on how to reset your password."
And 1 email should be delivered
@@ -152,7 +152,7 @@ Feature: Authenticate Admin Users
And I press "Set Admin Password"
Then I should see "Your password has been changed successfully. Your account is locked."
When the admin "admin" is unlocked
- And I fill in "Admin user name" with "admin"
+ And I fill in "Admin username" with "admin"
And I fill in "Admin password" with "newpassword"
And I press "Log In as Admin"
Then I should see "Successfully logged in."
diff --git a/features/other_a/profile_edit.feature b/features/other_a/profile_edit.feature
index 1f9e0e6b593..18ea8853105 100644
--- a/features/other_a/profile_edit.feature
+++ b/features/other_a/profile_edit.feature
@@ -124,7 +124,7 @@ Scenario: Changing email address after requesting password reset
When I am logged out
And I follow "Forgot password?"
- And I fill in "Email address or user name" with "editname"
+ And I fill in "Email address or username" with "editname"
And I press "Reset Password"
Then 1 email should be delivered to "bar@ao3.org"
When all emails have been delivered
diff --git a/features/step_definitions/admin_steps.rb b/features/step_definitions/admin_steps.rb
index fa8e38d8926..118a5231910 100644
--- a/features/step_definitions/admin_steps.rb
+++ b/features/step_definitions/admin_steps.rb
@@ -22,7 +22,7 @@
login = "testadmin-#{role}"
FactoryBot.create(:admin, login: login, roles: [role]) if Admin.find_by(login: login).nil?
visit new_admin_session_path
- fill_in "Admin user name", with: login
+ fill_in "Admin username", with: login
fill_in "Admin password", with: "adminpassword"
click_button "Log In as Admin"
step %{I should see "Successfully logged in"}
@@ -32,7 +32,7 @@
step "I start a new session"
FactoryBot.create(:admin, login: "testadmin", email: "testadmin@example.org") if Admin.find_by(login: "testadmin").nil?
visit new_admin_session_path
- fill_in "Admin user name", with: "testadmin"
+ fill_in "Admin username", with: "testadmin"
fill_in "Admin password", with: "adminpassword"
click_button "Log In as Admin"
step %{I should see "Successfully logged in"}
diff --git a/features/step_definitions/user_steps.rb b/features/step_definitions/user_steps.rb
index 6dfc6e9c0e7..e422b295816 100644
--- a/features/step_definitions/user_steps.rb
+++ b/features/step_definitions/user_steps.rb
@@ -99,7 +99,7 @@
step %{I am on the homepage}
find_link('login-dropdown').click
- fill_in "User name or email:", with: login
+ fill_in "Username or email:", with: login
fill_in "Password:", with: password
check "Remember Me"
click_button "Log In"
@@ -243,14 +243,14 @@
When "I request a password reset for {string}" do |login|
step(%{I am on the login page})
step(%{I follow "Reset password"})
- step(%{I fill in "Email address or user name" with "#{login}"})
+ step(%{I fill in "Email address or username" with "#{login}"})
step(%{I press "Reset Password"})
end
# THEN
-Then /^I should get the error message for wrong username or password$/ do
- step(%{I should see "The password or user name you entered doesn't match our records. Please try again"})
+Then "I should get the error message for wrong username or password" do
+ step(%{I should see "The password or username you entered doesn't match our records. Please try again"})
end
Then /^I should get an activation email for "(.*?)"$/ do |login|
diff --git a/features/users/authenticate_users.feature b/features/users/authenticate_users.feature
index 9c3459520c6..cf9de30bea1 100644
--- a/features/users/authenticate_users.feature
+++ b/features/users/authenticate_users.feature
@@ -9,14 +9,14 @@ Feature: User Authentication
| sam | secret |
And all emails have been delivered
When I am on the home page
- And I fill in "User name or email:" with "sam"
+ And I fill in "Username or email:" with "sam"
And I fill in "Password:" with "test"
And I press "Log In"
- Then I should see "The password or user name you entered doesn't match our records"
- And I should see "Forgot your password or user name?"
+ Then I should see "The password or username you entered doesn't match our records"
+ And I should see "Forgot your password or username?"
When I follow "Reset password"
- Then I should see "Please tell us the user name or email address you used when you signed up for your Archive account"
- When I fill in "Email address or user name" with "sam"
+ Then I should see "Please tell us the username or email address you used when you signed up for your Archive account"
+ When I fill in "Email address or username" with "sam"
And I press "Reset Password"
Then I should see "Check your email for instructions on how to reset your password."
And 1 email should be delivered
@@ -26,7 +26,7 @@ Feature: User Authentication
# existing password should still work
When I am on the homepage
- And I fill in "User name or email:" with "sam"
+ And I fill in "Username or email:" with "sam"
And I fill in "Password:" with "secret"
And I press "Log In"
Then I should see "Hi, sam"
@@ -66,14 +66,14 @@ Feature: User Authentication
# old password should no longer work
When I am on the homepage
- And I fill in "User name or email:" with "sam"
+ And I fill in "Username or email:" with "sam"
And I fill in "Password:" with "secret"
And I press "Log In"
Then I should not see "Hi, sam"
# new password should work
When I am on the homepage
- And I fill in "User name or email:" with "sam"
+ And I fill in "Username or email:" with "sam"
And I fill in "Password:" with "new
When I am on the home page
And I follow "Forgot password?"
- And I fill in "Email address or user name" with "target"
+ And I fill in "Email address or username" with "target"
And I press "Reset Password"
Then I should be on the home page
And I should see "Password resets are disabled for that user."
And 0 emails should be delivered
When I follow "Forgot password?"
- And I fill in "Email address or user name" with "user@example.com"
+ And I fill in "Email address or username" with "user@example.com"
And I press "Reset Password"
Then I should be on the home page
And I should see "Password resets are disabled for that user."
@@ -289,11 +289,11 @@ Feature: User Authentication
| login | password |
| admin | adminpassword |
When I go to the login page
- And I fill in "User name or email" with "admin"
+ And I fill in "Username or email" with "admin"
And I fill in "Password" with "adminpassword"
And I press "Log In"
Then I should not see "Successfully logged in"
- And I should see "The password or user name you entered doesn't match our records."
+ And I should see "The password or username you entered doesn't match our records."
When I am logged in as an admin
And I go to the new user password page
Then I should be on the homepage
diff --git a/features/users/password_compatibility.feature b/features/users/password_compatibility.feature
index 278225eab4a..4c121bb25c8 100644
--- a/features/users/password_compatibility.feature
+++ b/features/users/password_compatibility.feature
@@ -10,7 +10,7 @@ Feature:
| login | password |
| user1 | password |
When I am on the homepage
- And I fill in "User name or email:" with "user1"
+ And I fill in "Username or email:" with "user1"
And I fill in "Password:" with "password"
And I press "Log In"
Then I should see "Successfully logged in."
@@ -21,7 +21,7 @@ Feature:
| login | password |
| user1 | password |
When I am on the homepage
- And I fill in "User name or email:" with "user1"
+ And I fill in "Username or email:" with "user1"
And I fill in "Password:" with "password"
And I press "Log In"
Then I should see "Successfully logged in."
@@ -32,7 +32,7 @@ Feature:
| login | password |
| user1 | password |
When I am on the homepage
- And I fill in "User name or email:" with "user1"
+ And I fill in "Username or email:" with "user1"
And I fill in "Password:" with "password"
And I press "Log In"
Then I should see "Successfully logged in."
diff --git a/features/works/work_share.feature b/features/works/work_share.feature
index 52ed92fab90..590933fb8d4 100644
--- a/features/works/work_share.feature
+++ b/features/works/work_share.feature
@@ -77,7 +77,7 @@ Feature: Share Works
Then I should see "Close" within "#modal"
When I follow "Close"
And I follow "Log In"
- And I fill in "User name or email:" with "maduser"
+ And I fill in "Username or email:" with "maduser"
And I fill in "Password:" with "password"
And I press "Log In"
Then the url should not include "share"
diff --git a/spec/models/admin_spec.rb b/spec/models/admin_spec.rb
index 99a268cd310..ddd85fc9985 100644
--- a/spec/models/admin_spec.rb
+++ b/spec/models/admin_spec.rb
@@ -30,7 +30,7 @@
end
context "invalid" do
- it "without a user name" do
+ it "without a username" do
expect { create(:admin, login: nil) }
.to raise_error(ActiveRecord::RecordInvalid,
"Validation failed: Login can't be blank, Login is too short (minimum is #{ArchiveConfig.LOGIN_LENGTH_MIN} characters)")
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index f7efde561b6..cd8fdc5872f 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -257,7 +257,7 @@
.to raise_error(ActiveRecord::RecordInvalid)
localized_renamed_at = I18n.l(existing_user.renamed_at, format: :long)
expect(existing_user.errors[:login].first).to eq(
- "can only be changed once every 7 days. You last changed your user name on #{localized_renamed_at}."
+ "can only be changed once every 7 days. You last changed your username on #{localized_renamed_at}."
)
end