Skip to content

Commit

Permalink
Merge pull request #35253 from nextcloud/bugfix/noid/remove-warnings-…
Browse files Browse the repository at this point in the history
…loginpage
  • Loading branch information
Pytal authored Nov 18, 2022
2 parents b4ab2a9 + 4083a50 commit 4767551
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
8 changes: 7 additions & 1 deletion core/src/components/MainMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,21 @@ import Vue from 'vue'
import AppMenu from './AppMenu.vue'

export const setUp = () => {

Vue.mixin({
methods: {
t,
n,
},
})

const container = document.getElementById('header-left__appmenu')
if (!container) {
// no container, possibly we're on a public page
return
}
const AppMenuApp = Vue.extend(AppMenu)
const appMenu = new AppMenuApp({}).$mount('#header-left__appmenu')
const appMenu = new AppMenuApp({}).$mount(container)

Object.assign(OC, {
setNavigationCounter(id, counter) {
Expand Down
4 changes: 2 additions & 2 deletions core/src/components/login/LoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default {
computed: {
isError() {
return this.invalidPassword || this.userDisabled
|| (this.throttleDelay && this.throttleDelay > 5000)
|| this.throttleDelay > 5000
},
errorLabel() {
if (this.invalidPassword) {
Expand All @@ -177,7 +177,7 @@ export default {
if (this.userDisabled) {
return t('core', 'User disabled')
}
if (this.throttleDelay && this.throttleDelay > 5000) {
if (this.throttleDelay > 5000) {
return t('core', 'We have detected multiple invalid login attempts from your IP. Therefore your next login is throttled up to 30 seconds.')
}
return undefined
Expand Down
4 changes: 2 additions & 2 deletions dist/core-login.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-login.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/core-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-main.js.map

Large diffs are not rendered by default.

0 comments on commit 4767551

Please sign in to comment.