Skip to content

Commit

Permalink
Fix #532 Add a maximum length for UID field
Browse files Browse the repository at this point in the history
  • Loading branch information
c-geek committed Aug 17, 2016
1 parent d0a28ac commit ab0d04d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/constants.js
Expand Up @@ -2,7 +2,7 @@

const CURRENCY = "[a-zA-Z0-9-_ ]{2,50}";
const UDID2 = "udid2;c;([A-Z-]*);([A-Z-]*);(\\d{4}-\\d{2}-\\d{2});(e\\+\\d{2}\\.\\d{2}(\\+|-)\\d{3}\\.\\d{2});(\\d+)(;?)";
const USER_ID = "[A-Za-z0-9_-]*";
const USER_ID = "[A-Za-z0-9_-]{2,100}";
const BASE58 = "[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+";
const PUBKEY = "[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{43,44}";
const TIMESTAMP = "[1-9][0-9]{0,18}";
Expand Down
2 changes: 1 addition & 1 deletion doc/Protocol.md
Expand Up @@ -128,7 +128,7 @@ Issuing an identity is the act of creating a link between a *public key* and *an
> « This identity refers to me ! »
#### Identity unique ID
UCP does not rely on any particular identity format, which remains implementation free. Identity simply has to be a string avoiding usage of line endings characters.
UCP does not rely on any particular identity format, which remains implementation free. Identity simply has to be a string of length between 2 and 100 characters avoiding usage of line endings characters.

In this document *identifier*, `UserID`, `USER_ID` and `uid` will be indifferently used to refer to this identity string.

Expand Down

0 comments on commit ab0d04d

Please sign in to comment.