fix Registrazione data
fix linkref fix controllo login
This commit is contained in:
@@ -9,8 +9,12 @@ function toHexString(bytes) {
|
||||
module.exports = {
|
||||
getlinkregByEmail: function (idapp, email, username) {
|
||||
try{
|
||||
mystr = idapp + email + username;
|
||||
return jwt.sign(toHexString(mystr), process.env.SIGNCODE).toString();
|
||||
myobj = {
|
||||
idapp,
|
||||
email,
|
||||
username
|
||||
};
|
||||
return jwt.sign(myobj, process.env.SIGNCODE).toString().substring(0, 180);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user