mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
query_params in coa_verify
This commit is contained in:
parent
2cc02d9599
commit
8226011e8a
@ -17,9 +17,13 @@ import { setDocumentTitle } from '../utils/dom_utils';
|
||||
|
||||
|
||||
let CoaVerifyContainer = React.createClass({
|
||||
|
||||
propTypes: {
|
||||
location: React.PropTypes.object
|
||||
},
|
||||
|
||||
render() {
|
||||
setDocumentTitle(getLangText('Verify your Certificate of Authenticity'));
|
||||
|
||||
return (
|
||||
<div className="ascribe-login-wrapper">
|
||||
<br/>
|
||||
@ -27,7 +31,7 @@ let CoaVerifyContainer = React.createClass({
|
||||
{getLangText('Verify your Certificate of Authenticity')}
|
||||
</div>
|
||||
|
||||
<CoaVerifyForm />
|
||||
<CoaVerifyForm location={this.props.location}/>
|
||||
<br />
|
||||
<br />
|
||||
{getLangText('ascribe is using the following public key for verification')}:
|
||||
@ -47,6 +51,10 @@ let CoaVerifyContainer = React.createClass({
|
||||
|
||||
|
||||
let CoaVerifyForm = React.createClass({
|
||||
propTypes: {
|
||||
location: React.PropTypes.object
|
||||
},
|
||||
|
||||
handleSuccess(response){
|
||||
let notification = null;
|
||||
if (response.verdict) {
|
||||
@ -56,6 +64,7 @@ let CoaVerifyForm = React.createClass({
|
||||
},
|
||||
|
||||
render() {
|
||||
const {message, signature} = this.props.location.query;
|
||||
return (
|
||||
<div>
|
||||
<Form
|
||||
@ -79,6 +88,7 @@ let CoaVerifyForm = React.createClass({
|
||||
type="text"
|
||||
placeholder={getLangText('Copy paste the message on the bottom of your Certificate of Authenticity')}
|
||||
autoComplete="on"
|
||||
defaultValue={message}
|
||||
name="username"
|
||||
required/>
|
||||
</Property>
|
||||
@ -90,6 +100,7 @@ let CoaVerifyForm = React.createClass({
|
||||
<InputTextAreaToggable
|
||||
rows={3}
|
||||
placeholder={getLangText('Copy paste the signature on the bottom of your Certificate of Authenticity')}
|
||||
defaultValue={signature}
|
||||
required/>
|
||||
</Property>
|
||||
<hr />
|
||||
|
Loading…
Reference in New Issue
Block a user