Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
form-creator-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simmctic
form-creator
form-creator-ui
Merge requests
!56
Issue
#54
: Fix changes to be like prod
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#54
: Fix changes to be like prod
issue/54
into
development
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Richard Fernando Heise Ferreira
requested to merge
issue/54
into
development
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
closes
#54 (closed)
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
a1dc9550
1 commit,
4 years ago
3 files
+
118
−
118
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
src/pages/SignIn.js
+
40
−
40
Options
import
React
from
"
react
"
;
import
{
useHistory
}
from
"
react-router-dom
"
;
import
{
useHistory
,
Link
}
from
"
react-router-dom
"
;
import
{
Redirect
}
from
"
react-router-dom
"
;
import
Grid
from
"
@material-ui/core/Grid
"
;
import
{
createMuiTheme
,
MuiThemeProvider
}
from
"
@material-ui/core
"
;
@@ -105,7 +105,7 @@ export default function SignIn() {
email
:
values
.
email
,
hash
:
values
.
password
})
.
then
(
function
(
response
)
{
.
then
(
function
(
response
)
{
if
(
!
response
.
data
.
error
)
{
window
.
sessionStorage
.
setItem
(
"
token
"
,
response
.
data
.
token
);
window
.
sessionStorage
.
setItem
(
"
userId
"
,
response
.
data
.
id
);
@@ -113,7 +113,7 @@ export default function SignIn() {
history
.
push
(
path
);
}
})
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
if
(
error
.
response
)
{
alert
(
"
Falha de autenticação. Certifique-se que email e senha estão corretos.
"
@@ -148,44 +148,44 @@ export default function SignIn() {
return
isLoged
?
(
<
Redirect
to
=
{
`/list/
${
window
.
sessionStorage
.
getItem
(
"
userId
"
)}
`
}
/
>
)
:
(
<
MuiThemeProvider
theme
=
{
theme
}
>
<
Paper
className
=
{
classes
.
register
}
justify
=
"
center
"
>
<
strong
className
=
{
classes
.
custom_strong
}
>
Login
de
Usuário
<
MuiThemeProvider
theme
=
{
theme
}
>
<
Paper
className
=
{
classes
.
register
}
justify
=
"
center
"
>
<
strong
className
=
{
classes
.
custom_strong
}
>
Login
de
Usuário
<
p
className
=
{
classes
.
strong_description
}
>
Insira
as
informações
abaixo
Insira
as
informações
abaixo
<
/p
>
<
/strong
>
<
form
className
=
{
classes
.
form
}
autocomplete
=
"
off
"
>
<
Grid
>
<
FormInput
label
=
"
E-mail
"
param
=
"
email
"
onUpdate
=
{
handleChange
}
error
=
{
!
checkEmail
()}
/
>
<
/Grid
>
<
Grid
>
<
FormInput
label
=
"
Senha
"
param
=
"
password
"
onUpdate
=
{
handleChange
}
/
>
<
/Grid
>
<
Grid
className
=
{
classes
.
noAcc
}
>
<
a
href
=
"
https://genforms.c3sl.ufpr.br/#
/signup
"
>
Não
é
cadastrado
?
<
/
a
>
<
/Grid
>
<
Grid
>
<
IconButton
size
=
"
medium
"
className
=
{
classes
.
button
}
id
=
"
whiteTextedButton
"
onClick
=
{()
=>
submit
()}
>
<
KeyboardArrowRightIcon
/>
Conecte
-
se
<
/strong
>
<
form
className
=
{
classes
.
form
}
autocomplete
=
"
off
"
>
<
Grid
>
<
FormInput
label
=
"
E-mail
"
param
=
"
email
"
onUpdate
=
{
handleChange
}
error
=
{
!
checkEmail
()}
/
>
<
/Grid
>
<
Grid
>
<
FormInput
label
=
"
Senha
"
param
=
"
password
"
onUpdate
=
{
handleChange
}
/
>
<
/Grid
>
<
Grid
className
=
{
classes
.
noAcc
}
>
<
Link
to
=
"
/signup
"
>
Não
é
cadastrado
?
<
/
Link
>
<
/Grid
>
<
Grid
>
<
IconButton
size
=
"
medium
"
className
=
{
classes
.
button
}
id
=
"
whiteTextedButton
"
onClick
=
{()
=>
submit
()}
>
<
KeyboardArrowRightIcon
/>
Conecte
-
se
<
/IconButton
>
<
/Grid
>
<
/form
>
<
/Paper
>
<
/MuiThemeProvider
>
);
<
/Grid
>
<
/form
>
<
/Paper
>
<
/MuiThemeProvider
>
);
}
Loading