Skip to content

Commit

Permalink
create account security stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
cmayeux05 committed Mar 6, 2024
1 parent 2de490e commit a5d4260
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions client/src/views/ContentCreator/ContentCreator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ export default function ContentCreator() {
//console.log("Role: ", value);
if (value.name == 'Researcher') {
navigate('/report');
}
else if (value.name == 'Classroom Manager') {
navigate('/dashboard')
};
});

Expand Down
2 changes: 2 additions & 0 deletions client/src/views/Mentor/Dashboard/AddMentor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useNavigate } from 'react-router-dom';
import NavBar from '../../../components/NavBar/NavBar';
import { getMentor, getSchoolList, addMentorClass } from '../../../Utils/requests';
import '../../TeacherLogin/TeacherLogin.less';
import { confirmRedirect } from '../../../App';

//import { findSuperAdmins } from '../../../../server/extensions/users-permissions/controllers/Auth';

Expand All @@ -21,6 +22,7 @@ const useFormInput = (initialValue) => {
};

export default function AddMentor() {
confirmRedirect();
const username = useFormInput('');
const email = useFormInput('');
const [school, setSchool] = useState("");
Expand Down
2 changes: 2 additions & 0 deletions client/src/views/Mentor/Dashboard/MentorRegister.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useNavigate } from 'react-router-dom';
import NavBar from '../../../components/NavBar/NavBar';
import { createMentor, getSchoolList } from '../../../Utils/requests';
import '../../TeacherLogin/TeacherLogin.less';
import { confirmRedirect } from '../../../App';

//import { findSuperAdmins } from '../../../../server/extensions/users-permissions/controllers/Auth';

Expand Down Expand Up @@ -34,6 +35,7 @@ const useFormInput = (initialValue) => {
};

export default function MentorRegister() {
confirmRedirect();
const username = useFormInput('');
const email = useFormInput('');
const [school, setSchool] = useState("");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "03/05/2024 3:46:17 PM"
"x-generation-date": "03/06/2024 4:13:32 PM"
},
"x-strapi-config": {
"path": "/documentation",
Expand Down

0 comments on commit a5d4260

Please sign in to comment.