log users out if they do not have curve keys. add curve keys to object on registration and login.
This commit is contained in:
@@ -304,6 +304,12 @@ define([
|
||||
typeof(proxy.edPublic) === 'string';
|
||||
};
|
||||
|
||||
common.hasCurveKeys = function (proxy) {
|
||||
return typeof(proxy) === 'object' &&
|
||||
typeof(proxy.curvePrivate) === 'string' &&
|
||||
typeof(proxy.curvePublic) === 'string';
|
||||
};
|
||||
|
||||
common.isArray = $.isArray;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user