Quote from: goldsky at Dec 06, 2010, 02:03 PM
james,
would you give us an example how to use this and what kind of the output it should return?
Once you install the package, you will find the LoginFields plugin in your list of plugins. If you click the plugin to edit it, then look at the properties, there is one property listed, called ’fields’. Here is where you can specify the names of user profile fields that you would like users to be able to have the option of using instead of the username. By default there are two fields listed: ’fullname’ and ’email’. This means that users can log in using either their full name or their email address instead of their username. This applies to Manager logins as well as logins to your web context if you have a login-based site.
There aren’t really any other basic fields in the user profile that would make sense to use (the list is here:
http://rtfm.modx.com/display/revolution20/Users#Users-UserFields), but you can also use extended profile fields - this might make sense if you have an extended field like an employee ID number or something.
There is no output involved - if the user enters in the username field a value that matches one of the fields you are allowing - and they are the only user to have that value, then the login will succeed (assuming they have the right password for the account). If they input something that doesn’t match on any of the allowed fields (or multiple matches are found) the login will fail.