mirror of
https://github.com/wassname/talk.git
synced 2026-07-11 14:07:16 +08:00
12 lines
275 B
JavaScript
12 lines
275 B
JavaScript
import React from 'react';
|
|
|
|
export const FormCSRFInput = React.createClass({
|
|
render() {
|
|
const token = ''; //$('meta[name="csrf-token"]').attr('content');
|
|
|
|
return (
|
|
<input type="hidden" name="authenticity_token" value={token} readOnly={true} />
|
|
);
|
|
}
|
|
});
|