Skip to content

Instantly share code, notes, and snippets.

@nasimjibs
nasimjibs / resetPassword.js
Created May 16, 2022 22:16
resetPassword.js is used in one of our Single Page Application. The front-end is written in React.js and back-end is written in Laravel-lumen. It renders the reset password page. When a user fills up forgot password form, the user gets an email that contains a link. The link contains a token that is used to determine the user_id and validity of …
import React, { Component } from "react";
import "../App.css";
import { Col, Form, FormGroup, Input } from "reactstrap";
import { Link, withRouter } from "react-router-dom";
import logo from "../images/logo.png";
import axios from "axios";
import { API_URL } from "./constants";
class resetPassword extends Component {
constructor(props) {