Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / migrations / 0039_auto__add_unique_astakosuser_auth_token__add_unique_component_auth_tok.py @ 9a94c0f1

History | View | Annotate | Download (24.5 kB)

# Date Author Comment
7b0f970f 06/03/2013 12:00 pm Giorgos Korfiatis

astakos: Impose uniqueness on auth_token

Add uniqueness constraint in AstakosUser and Component models.
Before that, invalidate (set to None) any duplicate tokens.

When renewing a token, retry a couple of times, if generated token
is in use.