lookup additional fields #52
Comments
What do you mean by "username and additional_field are composite unique" and how does this affect lookup? |
I mean I want username is not unique and I do not have unique filed, so I need additional filed for finding user. |
@shishi just for clarification have you tried just calling |
@shishi, where session params is in the format: {
password: "foo",
username: "bar",
additional_field: "baz"
} |
You should probably also configure the user_lookup_field to be config.user_lookup_field = :id This is used by Warden |
I totally make an unwarranted assumption about Monban lookup user with single field. |
In Readme, I found Monban can lookup multiple field (email or username). But I want to add required field for user lookup.
For example, User class has username, additional_field and password. username and additional_field are composite unique.
I found
FieldMap
class and I think I need to overwritequery_string
orauthenticate_session
. Do you have any good idea?The text was updated successfully, but these errors were encountered: