A user now signs up with a required username and can login with either that username or email address. Email is now optional but both username and email are verified to be unique.
All functionality that was capable with emails is applied to usernames, such as inviting another user to a group.
A user cannot change their username on their edit page.
Issue #10: 2.4.0 now the ruby version
Issue #9: User: email, first_name, last_name, and username validators in place.
Error messages
Correct error messages, utilizing ActiveRecordObj.errors.full_messages.to_sentence within the flash message.
Users
Querying functionality for invitable_groups has been moved from the controller down to the model
Invitations
Model: Verifies uniqueness of receiver scoped to groups only for pending and accepted invitations. This enables a group owner to invite a user again, only if they've declined the invitation.
DB
Adjusts seeds file.
Adds username column to users table
robots.txt
Disallows all robots
Tests
Adds tests for new username features.
Branch requirements
This branch is dependent on the joining-groups branch. ( PR #14 )
Branch username
Changes:
A user now signs up with a required username and can login with either that username or email address. Email is now optional but both username and email are verified to be unique.
All functionality that was capable with emails is applied to usernames, such as inviting another user to a group.
A user cannot change their username on their edit page.
Issue #10: 2.4.0 now the ruby version
Issue #9:
User
:email
,first_name
,last_name
, andusername
validators in place.Error messages
Correct error messages, utilizing
ActiveRecordObj.errors.full_messages.to_sentence
within the flash message.Users
Querying functionality for
invitable_groups
has been moved from the controller down to the modelInvitations
Model: Verifies uniqueness of
receiver
scoped togroups
only for pending and accepted invitations. This enables a group owner to invite a user again, only if they've declined the invitation.DB
Adjusts seeds file. Adds
username
column tousers
tablerobots.txt
Disallows all robots
Tests
Adds tests for new username features.
Branch requirements
This branch is dependent on the
joining-groups
branch. ( PR #14 )