'use strict'; import React from 'react'; import GlobalNotificationModel from '../models/global_notification_model'; import GlobalNotificationActions from '../actions/global_notification_actions'; import Form from './ascribe_forms/form'; import Property from './ascribe_forms/property'; import InputTextAreaToggable from './ascribe_forms/input_textarea_toggable'; import AscribeSpinner from './ascribe_spinner'; import ApiUrls from '../constants/api_urls'; import { getLangText } from '../utils/lang_utils'; import { setDocumentTitle } from '../utils/dom_utils'; let CoaVerifyContainer = React.createClass({ propTypes: { location: React.PropTypes.object }, render() { const { message, signature } = this.props.location.query; setDocumentTitle(getLangText('Verify your Certificate of Authenticity')); return (

{getLangText('Verify your Certificate of Authenticity')}


{getLangText('ascribe is using the following public key for verification')}:
                -----BEGIN PUBLIC KEY-----
                MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDddadqY31kKPFYk8PQA8BWSTbm
                gaGf9KEYBALp2nWAJcwq80qBzGF+gfi0Z+yb4ooeKHl27GnuxZYValE1Z5ZujfeJ
                TgO4li59ZMYiah8oXZp/OysrBwCvWw0PtWd8/D9Nc4PqyOz5gzEh6kFah5VsuAke
                Znu2w7KmeLZ85SmwEQIDAQAB
                -----END PUBLIC KEY-----
                
); } }); let CoaVerifyForm = React.createClass({ propTypes: { message: React.PropTypes.string, signature: React.PropTypes.string }, handleSuccess(response){ let notification = null; if (response.verdict) { notification = new GlobalNotificationModel(getLangText('Certificate of Authenticity successfully verified'), 'success'); GlobalNotificationActions.appendGlobalNotification(notification); } }, render() { const { message, signature } = this.props; return (
{getLangText('Verify your Certificate of Authenticity')} } spinner={ }>
); } }); export default CoaVerifyContainer;