Fakultas Ilmu Komputer UI

Commit 25a3045e authored by Fadhil Pradipta Widyanto's avatar Fadhil Pradipta Widyanto
Browse files

Merge branch 'fadhil' into 'master'

Fadhil

See merge request diskuy!84
parents 8ef8992f 08d97d94
......@@ -30,7 +30,6 @@ export default function RegisterForm(props){
try {
AuthService.register(username, email, password)
if(!loggedIn) throw TypeError('Not valid')
setSuccesful(true)
props.history.push('/')
window.location.reload()
......
......@@ -6,7 +6,6 @@ function tConvert (time) {
time = time.toString ().match (/^([01]\d|2[0-3])(:)([0-5]\d)(:[0-5]\d)?$/) || [time];
if (time.length > 1) { // If time format correct
console.log(time)
time = time.slice (1, 4); // Remove full string match value
time[5] = +time[0] < 12 ? ' AM' : ' PM'; // Set AM/PM
time[0] = +time[0] % 12 || 12; // Adjust hours
......
......@@ -19,7 +19,7 @@ class AuthService {
password
}
})
this.login(email, password)
await this.login(email, password)
return response
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment