Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
Login
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Coscine
F
frontend
apps
Login
Commits
d03b4bfc
Commit
d03b4bfc
authored
Jul 17, 2020
by
Marcel Nellesen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Sprint/2020-12' into 'master'
Sprint/2020 12 See merge request coscine/app/login!32
parents
bc4ed81b
7189171c
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
65 deletions
+1
-65
src/LoginApp.vue
src/LoginApp.vue
+1
-7
src/components/LoginForm.vue
src/components/LoginForm.vue
+0
-47
src/components/LoginMain.vue
src/components/LoginMain.vue
+0
-11
No files found.
src/LoginApp.vue
View file @
d03b4bfc
...
@@ -46,7 +46,6 @@
...
@@ -46,7 +46,6 @@
:loggedInWithShibboleth=
"this.loggedInWithShibboleth"
:loggedInWithShibboleth=
"this.loggedInWithShibboleth"
:mergeReturnUrl=
"mergeReturnUrl"
:mergeReturnUrl=
"mergeReturnUrl"
@
back=
"loginBack"
@
back=
"loginBack"
@
clickGetLoginForm=
"getLoginForm"
@
clickGetORCiDForm=
"getORCiDForm"
@
clickGetORCiDForm=
"getORCiDForm"
@
changeLogoutState=
"changeLogoutState"
@
changeLogoutState=
"changeLogoutState"
/>
/>
...
@@ -81,7 +80,6 @@
...
@@ -81,7 +80,6 @@
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
LoginMain
from
'
./components/LoginMain.vue
'
;
import
LoginMain
from
'
./components/LoginMain.vue
'
;
import
LoginForm
from
'
./components/LoginForm.vue
'
;
import
LogoutMain
from
'
./components/LogoutMain.vue
'
;
import
LogoutMain
from
'
./components/LogoutMain.vue
'
;
import
TOS
from
'
./components/TOS.vue
'
;
import
TOS
from
'
./components/TOS.vue
'
;
import
RWTHHeader
from
'
./components/RWTHHeader.vue
'
;
import
RWTHHeader
from
'
./components/RWTHHeader.vue
'
;
...
@@ -165,10 +163,9 @@ function getLoggedInWithShibboleth() {
...
@@ -165,10 +163,9 @@ function getLoggedInWithShibboleth() {
}
}
export
default
Vue
.
extend
({
export
default
Vue
.
extend
({
name
:
'
app
'
,
name
:
'
login
app
'
,
components
:
{
components
:
{
LoginMain
,
LoginMain
,
LoginForm
,
LogoutMain
,
LogoutMain
,
TOS
,
TOS
,
RWTHHeader
,
RWTHHeader
,
...
@@ -207,9 +204,6 @@ export default Vue.extend({
...
@@ -207,9 +204,6 @@ export default Vue.extend({
loginBack
()
{
loginBack
()
{
this
.
currentInputCard
=
'
LoginMain
'
;
this
.
currentInputCard
=
'
LoginMain
'
;
},
},
getLoginForm
()
{
this
.
currentInputCard
=
'
LoginForm
'
;
},
getORCiDForm
()
{
getORCiDForm
()
{
window
.
location
.
href
=
this
.
orcidUrl
;
window
.
location
.
href
=
this
.
orcidUrl
;
},
},
...
...
src/components/LoginForm.vue
deleted
100644 → 0
View file @
bc4ed81b
<
template
>
<div>
<form
:action=
"returnUrl"
method=
"post"
>
<h5
class=
"card-title"
>
{{
$t
(
'
login_form_headline
'
)
}}
</h5>
<div
class=
"row"
>
<input
data-val=
"true"
data-val-required=
"$t('login_form_id_required')"
id=
"userId"
placeholder=
"User ID"
name=
"UserId"
type=
"text"
value=
""
class=
"form-control"
/>
</div>
<div
style=
"height: 5.5px;"
>
</div>
<div
class=
"row"
>
<input
type=
"Submit"
:value=
"$t('login_form_submit')"
class=
"submit btn btn-primary w-100"
/>
</div>
<div
class=
"row"
>
<button
class=
"btn btn-secondary w-100"
name=
"back"
@
click.prevent=
"clickBack"
>
{{
$t
(
'
back
'
)
}}
</button>
</div>
<input
type=
"hidden"
name=
"wa"
value=
"wsignin1.0"
/>
</form>
</div>
</
template
>
<
script
lang=
'ts'
>
import
Vue
from
'
vue
'
;
export
default
Vue
.
extend
({
name
:
'
LoginForm
'
,
data
()
{
return
{
form
:
{
},
};
},
props
:
{
returnUrl
:
String
,
},
methods
:
{
clickBack
()
{
this
.
$emit
(
'
back
'
);
},
},
});
</
script
>
<
style
scoped
>
.form-control
{
margin
:
0em
0.35em
;
}
</
style
>
\ No newline at end of file
src/components/LoginMain.vue
View file @
d03b4bfc
...
@@ -9,20 +9,12 @@
...
@@ -9,20 +9,12 @@
<span>
{{
$t
(
'
login_button_orcid
'
)
}}
</span>
<span>
{{
$t
(
'
login_button_orcid
'
)
}}
</span>
</button>
</button>
</div>
</div>
<div
class=
"row"
>
<button
class=
"btn btn-primary w-100"
name=
"getLoginForm"
@
click.prevent=
"clickGetLoginForm"
>
{{
$t
(
'
login_button_form
'
)
}}
</button>
</div>
<form
class=
"w-100"
:action=
"shibbolethReturnUrl"
method=
"post"
>
<form
class=
"w-100"
:action=
"shibbolethReturnUrl"
method=
"post"
>
<div
class=
"row"
>
<div
class=
"row"
>
<input
class=
"btn btn-primary w-100"
type=
"Submit"
:value=
"$t('login_shibboleth')"
/>
<input
class=
"btn btn-primary w-100"
type=
"Submit"
:value=
"$t('login_shibboleth')"
/>
<input
type=
"hidden"
name=
"wa"
value=
"wsignin1.0"
/>
<input
type=
"hidden"
name=
"wa"
value=
"wsignin1.0"
/>
</div>
</div>
</form>
</form>
<div
class=
"row"
>
<button
class=
"btn btn-secondary w-100"
disabled
>
{{
$t
(
'
login_button_without_account
'
)
}}
</button>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -36,9 +28,6 @@ export default Vue.extend({
...
@@ -36,9 +28,6 @@ export default Vue.extend({
shibbolethReturnUrl
:
String
,
shibbolethReturnUrl
:
String
,
},
},
methods
:
{
methods
:
{
clickGetLoginForm
()
{
this
.
$emit
(
'
clickGetLoginForm
'
);
},
clickGetORCiDForm
()
{
clickGetORCiDForm
()
{
this
.
$emit
(
'
clickGetORCiDForm
'
);
this
.
$emit
(
'
clickGetORCiDForm
'
);
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment