Save encrypted blob decrypt key at login if missing

also:

increased entropy for standalone vault test
fixed issue where register was using lowercase version of username
added username validation rules
in the browser does the new logging stuff output to the console?  I left
this here because its the sort of thing the client outputs to the console.


On Wed, Jun 18, 2014 at 10:17 AM, wltsmrz <notifications@github.com> wrote:

> In src/js/ripple/vaultclient.js:
>
> > @@ -145,6 +145,38 @@ VaultClient.prototype.login = function(username, password, callback) {
> >        //save for relogin
> >        self.infos[keys.id] = authInfo;
> >
> > +      //migrate missing fields
> > +      if (blob.missing_fields) {
> > +        if (blob.missing_fields.encrypted_blobdecrypt_key) {
> > +          console.log("migration: saving encrypted blob decrypt key");
>
> Probably try to minimize unnecessary logging. If you do actually want to
> log here, try to use our new logging stuff
> <https://github.com/ripple/ripple-lib/blob/develop/src/js/ripple/server.js#L6>
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ripple/ripple-lib/pull/102/files#r13927451>.
>