-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defensible implementation of Onboarding Activity # TODO: Bug fix and …
…Unit Tests
- Loading branch information
Showing
6 changed files
with
114 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
from application import db | ||
from model import Organisation, OrcidUser, UserRole | ||
db.drop_all() | ||
db.create_all() | ||
|
||
addOrganisation = Organisation(org_name="The Royal Society of NewZealand", emailid="nzorcidhub@royalsociety.org.nz", tuakiriname="The Royal Society of NewZealand", | ||
orcid_client_id="client-123", orcid_secret="secret-123", confirmed=True) | ||
superUser = OrcidUser(rname="The Royal Society of NewZealand", email="nzorcidhub@royalsociety.org.nz", orcidid="test123", auth_token="test123", | ||
auedupersonsharedtoken="test-123", confirmed=True, | ||
urole=UserRole.SUPERUSER, orgid="nzorcidhub@royalsociety.org.nz") | ||
|
||
db.session.add(addOrganisation) | ||
db.session.commit() | ||
db.session.add(superUser) | ||
db.session.commit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<h1>Organisation Confirmation Form</h1> | ||
<form action="" method="post" name="confirm"> | ||
{{ form.hidden_tag() }} | ||
|
||
<p>Organisation Name:{{ form.orgName(size=50) }}</p><br> | ||
<p>Organisation Email:{{ form.orgEmailid(size=50) }}</p><br> | ||
<p>Enter Organisation Orcid Client ID:{{ form.orgOricdClientId(size=50) }}</p><br> | ||
<p>Enter Organisation Orcid Client Secret:{{ form.orgOrcidClientSecret(size=50) }}</p><br> | ||
|
||
<p><input type="submit" value="Confirm"></p> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters