Merge pull request #2 from OpenSignLabs/main

sync fork
This commit is contained in:
prafullnavkar-nxg
2023-10-27 17:01:01 +05:30
committed by GitHub
3 changed files with 211 additions and 21 deletions
+5
View File
@@ -57,6 +57,11 @@ Welcome to OpenSign, an open-source document e-signing solution designed to prov
- **Completion Certificate**: Generate secure completion certificate as soon as a document is signed by all participants.
- **API Support**: Provides a robust API for integration into other software and services.
<img src=https://github.com/OpenSignLabs/OpenSign/assets/5486116/b37ff443-7099-4273-9aeb-21c46d7154cf height='200'>
<img src=https://github.com/OpenSignLabs/OpenSign/assets/5486116/86db91b7-6c2f-4885-a33c-58f4fd35ec89 height='200'>
<img src=https://github.com/OpenSignLabs/OpenSign/assets/5486116/56835efd-c40e-42de-a206-20202c293876 height='200'>
---
### Installation
@@ -50,7 +50,7 @@ async function AuthLoginAsMail(request) {
if (res.data) {
resolve(res.data);
} else {
reject('User not found!');
reject('user not found!');
}
})
.catch(err => {
@@ -59,25 +59,7 @@ async function AuthLoginAsMail(request) {
// user couldn't find lets sign up!
})
.catch(() => {
let user = new Parse.User();
user.set('username', email);
user.set('email', email);
user.set('password', '12345');
user
.save()
.then(token => {
var error = token == '' ? true : false;
if (error) {
reject('result not found!');
} else {
resolve(token);
}
})
.catch(e => {
console.log('error in auth');
reject('user already exists!');
console.log(e);
});
reject('user not found!');
});
});
}
File diff suppressed because one or more lines are too long