flask-principal icon indicating copy to clipboard operation
flask-principal copied to clipboard

Errors in the examples provided by the docs induced by latest changes

Open mickey06 opened this issue 11 years ago • 3 comments

In the "Authentication providers" example identity.name should be replaced by identity.id

In the "User Information providers" example the hasattr(current_user, 'id') test doesn't exclude anonymous users anymore. Because all users have the id attribute now.

mickey06 avatar Jan 11 '14 17:01 mickey06

You should make a bug report for this.

svenstaro avatar Apr 17 '14 02:04 svenstaro

I thought issues were bug reports ? Where should I post this ?

mickey06 avatar Apr 17 '14 14:04 mickey06

Errr excuse me, of course I mean pull request.

svenstaro avatar Apr 17 '14 14:04 svenstaro