Dgraph: "checkpwd" breaks with "expand(_all_)"

Created on 25 Sep 2017  路  3Comments  路  Source: dgraph-io/dgraph

There's a way to filter checkpwd?

Attribute "password" of type password cannot be fetched

kinbug

All 3 comments

Thanks for the report @MichelDiz. Yes, password should be filtered.

@pawanrawal I thought a little bit about that bug. Filtering would be great, but could you add an option to execute the "expand (_all_)" if we pass the password? For example, passing the password through a variable.

I believe it would be more useful for this "checkpwd" function - we could bind the client password through a function up to the query variable.

Or like

```
{
me (func: eq (name, "Michael") ) {
checkpwd(password, "ThePassword")
expand(_all_)
}
}

```

Cheers

Yeah, I think we can exclude password by default from expand(_all_) so that error is not returned. And if the user wants to check it then they can supply it like you did.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

captain-me0w picture captain-me0w  路  4Comments

marvin-hansen picture marvin-hansen  路  4Comments

jeffkhull picture jeffkhull  路  3Comments

protheusfr picture protheusfr  路  4Comments

fritzblue picture fritzblue  路  5Comments