mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge branch 'master' into fix-no-email-exposed-on-forgot-password
This commit is contained in:
commit
3ad9685a82
@ -41,7 +41,7 @@ EMAIL_PASSWORD=xxx
|
||||
EMAIL_SMTP_URL=gmail.com
|
||||
EMAIL_SMTP_PORT=587
|
||||
EMAIL_LINK_VERIFICATION=http://localhost/checkEmail/{optin}{code}
|
||||
EMAIL_LINK_SETPASSWORD=http://localhost/reset/{code}
|
||||
EMAIL_LINK_SETPASSWORD=http://localhost/reset/{optin}
|
||||
EMAIL_LINK_FORGOTPASSWORD=http://localhost/forgot-password
|
||||
EMAIL_CODE_VALID_TIME=1440
|
||||
EMAIL_CODE_REQUEST_TIME=10
|
||||
|
||||
@ -33,7 +33,6 @@ LOGIN_APP_SECRET=21ffbbc616fe
|
||||
LOGIN_SERVER_KEY=a51ef8ac7ef1abf162fb7a65261acd7a
|
||||
|
||||
# EMail
|
||||
RESEND_TIME=10
|
||||
EMAIL=$EMAIL
|
||||
EMAIL_USERNAME=$EMAIL_USERNAME
|
||||
EMAIL_SENDER=$EMAIL_SENDER
|
||||
@ -42,7 +41,8 @@ EMAIL_SMTP_URL=$EMAIL_SMTP_URL
|
||||
EMAIL_SMTP_PORT=587
|
||||
EMAIL_LINK_VERIFICATION=$EMAIL_LINK_VERIFICATION
|
||||
EMAIL_LINK_SETPASSWORD=$EMAIL_LINK_SETPASSWORD
|
||||
RESEND_TIME=10
|
||||
EMAIL_CODE_VALID_TIME=$EMAIL_CODE_VALID_TIME
|
||||
EMAIL_CODE_REQUEST_TIME=$EMAIL_CODE_REQUEST_TIME
|
||||
|
||||
# Webhook
|
||||
WEBHOOK_ELOPAGE_SECRET=$WEBHOOK_ELOPAGE_SECRET
|
||||
@ -199,7 +199,12 @@ export class TransactionResolver {
|
||||
// decay & link transactions
|
||||
if (currentPage === 1 && order === Order.DESC) {
|
||||
transactions.push(
|
||||
virtualDecayTransaction(lastTransaction.balance, lastTransaction.balanceDate, now, self),
|
||||
virtualDecayTransaction(
|
||||
lastTransaction.balance.minus(sumHoldAvailableAmount.toString()),
|
||||
lastTransaction.balanceDate,
|
||||
now,
|
||||
self,
|
||||
),
|
||||
)
|
||||
// virtual transaction for pending transaction-links sum
|
||||
if (sumHoldAvailableAmount.greaterThan(0)) {
|
||||
|
||||
@ -25,8 +25,11 @@ EMAIL_USERNAME=peter@lustig.de
|
||||
EMAIL_SENDER=peter@lustig.de
|
||||
EMAIL_PASSWORD=1234
|
||||
EMAIL_SMTP_URL=smtp.lustig.de
|
||||
EMAIL_LINK_VERIFICATION=https://stage1.gradido.net/checkEmail/{code}
|
||||
EMAIL_LINK_SETPASSWORD=https://stage1.gradido.net/reset/{code}
|
||||
EMAIL_LINK_VERIFICATION=https://stage1.gradido.net/checkEmail/{optin}{code}
|
||||
EMAIL_LINK_SETPASSWORD=https://stage1.gradido.net/reset/{optin}
|
||||
EMAIL_LINK_FORGOTPASSWORD=https://stage1.gradido.net/forgot-password
|
||||
EMAIL_CODE_VALID_TIME=1440
|
||||
EMAIL_CODE_REQUEST_TIME=10
|
||||
|
||||
TYPEORM_LOGGING_RELATIVE_PATH=../deployment/bare_metal/log/typeorm.backend.log
|
||||
|
||||
@ -54,6 +57,8 @@ FRONTEND_CONFIG_VERSION=v1.2022-03-18
|
||||
GRAPHQL_URI=https://stage1.gradido.net/graphql
|
||||
ADMIN_AUTH_URL=https://stage1.gradido.net/admin/authenticate?token={token}
|
||||
|
||||
DEFAULT_PUBLISHER_ID=2896
|
||||
|
||||
META_URL=http://localhost
|
||||
META_TITLE_DE="Gradido – Dein Dankbarkeitskonto"
|
||||
META_TITLE_EN="Gradido - Your gratitude account"
|
||||
|
||||
@ -9,5 +9,5 @@ META_KEYWORDS_DE=$META_KEYWORDS_DE
|
||||
META_KEYWORDS_EN=$META_KEYWORDS_EN
|
||||
META_AUTHOR=$META_AUTHOR
|
||||
GRAPHQL_URI=$GRAPHQL_URI
|
||||
DEFAULT_PUBLISHER_ID=2896
|
||||
DEFAULT_PUBLISHER_ID=$DEFAULT_PUBLISHER_ID
|
||||
ADMIN_AUTH_URL=$ADMIN_AUTH_URL
|
||||
@ -13,7 +13,7 @@
|
||||
</b-col>
|
||||
<b-col cols="6">
|
||||
<div>
|
||||
{{ (Number(balance) - Number(decay)) | GDD }}
|
||||
{{ previousBookedBalance | GDD }}
|
||||
{{ decay | GDD }} {{ $t('math.equal') }}
|
||||
<b>{{ balance | GDD }}</b>
|
||||
</div>
|
||||
@ -33,6 +33,10 @@ export default {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
previousBookedBalance: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -419,6 +419,7 @@ describe('GddTransactionList', () => {
|
||||
},
|
||||
id: idx + 1,
|
||||
typeId: 'RECEIVE',
|
||||
balance: '33.33',
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@ -15,7 +15,11 @@
|
||||
<div v-for="({ id, typeId }, index) in transactions" :key="id">
|
||||
<transaction-list-item :typeId="typeId" class="pointer">
|
||||
<template #DECAY>
|
||||
<transaction-decay class="list-group-item" v-bind="transactions[index]" />
|
||||
<transaction-decay
|
||||
class="list-group-item"
|
||||
v-bind="transactions[index]"
|
||||
:previousBookedBalance="previousBookedBalance(index)"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<template #SEND>
|
||||
@ -23,6 +27,7 @@
|
||||
class="list-group-item"
|
||||
v-bind="transactions[index]"
|
||||
:decayStartBlock="decayStartBlock"
|
||||
:previousBookedBalance="previousBookedBalance(index)"
|
||||
v-on="$listeners"
|
||||
/>
|
||||
</template>
|
||||
@ -32,6 +37,7 @@
|
||||
class="list-group-item"
|
||||
v-bind="transactions[index]"
|
||||
:decayStartBlock="decayStartBlock"
|
||||
:previousBookedBalance="previousBookedBalance(index)"
|
||||
v-on="$listeners"
|
||||
/>
|
||||
</template>
|
||||
@ -41,6 +47,7 @@
|
||||
class="list-group-item"
|
||||
v-bind="transactions[index]"
|
||||
:decayStartBlock="decayStartBlock"
|
||||
:previousBookedBalance="previousBookedBalance(index)"
|
||||
v-on="$listeners"
|
||||
/>
|
||||
</template>
|
||||
@ -110,6 +117,10 @@ export default {
|
||||
})
|
||||
window.scrollTo(0, 0)
|
||||
},
|
||||
previousBookedBalance(idx) {
|
||||
if (this.transactions[idx + 1]) return this.transactions[idx + 1].balance
|
||||
return '0'
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
currentPage() {
|
||||
|
||||
@ -31,6 +31,7 @@ const propsData = {
|
||||
memo: 'sadasd asdasdasdasdadadd da dad aad',
|
||||
typeId: 'DECAY',
|
||||
decayStartBlock: new Date('2021-05-13T17:46:31.000Z'),
|
||||
previousBookedBalance: '43.56',
|
||||
}
|
||||
|
||||
describe('TransactionCreation', () => {
|
||||
|
||||
@ -47,7 +47,7 @@ import DecayRow from '../TransactionRows/DecayRow'
|
||||
import DecayInformation from '../DecayInformations/DecayInformation'
|
||||
|
||||
export default {
|
||||
name: 'slot-creation',
|
||||
name: 'TransactionCreation',
|
||||
components: {
|
||||
CollapseIcon,
|
||||
TypeIcon,
|
||||
@ -86,6 +86,10 @@ export default {
|
||||
type: Date,
|
||||
required: true,
|
||||
},
|
||||
previousBookedBalance: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
@ -31,6 +31,7 @@ const propsData = {
|
||||
memo: 'sadasd asdasdasdasdadadd da dad aad',
|
||||
typeId: 'DECAY',
|
||||
decayStartBlock: new Date('2021-05-13T17:46:31.000Z'),
|
||||
previousBookedBalance: '43.56',
|
||||
}
|
||||
|
||||
describe('TransactionDecay', () => {
|
||||
|
||||
@ -21,7 +21,11 @@
|
||||
</div>
|
||||
|
||||
<b-collapse class="pb-4 pt-5" v-model="visible">
|
||||
<decay-information-decay :balance="balance" :decay="decay.decay" />
|
||||
<decay-information-decay
|
||||
:balance="balance"
|
||||
:decay="decay.decay"
|
||||
:previousBookedBalance="previousBookedBalance"
|
||||
/>
|
||||
</b-collapse>
|
||||
</div>
|
||||
</div>
|
||||
@ -33,7 +37,7 @@ import AmountAndNameRow from '../TransactionRows/AmountAndNameRow'
|
||||
import DecayInformationDecay from '../DecayInformations/DecayInformation-Decay'
|
||||
|
||||
export default {
|
||||
name: 'slot-decay',
|
||||
name: 'TransactionDecay',
|
||||
components: {
|
||||
CollapseIcon,
|
||||
TypeIcon,
|
||||
@ -53,6 +57,10 @@ export default {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
previousBookedBalance: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
@ -31,6 +31,7 @@ const propsData = {
|
||||
memo: 'sadasd asdasdasdasdadadd da dad aad',
|
||||
typeId: 'RECEIVE',
|
||||
decayStartBlock: new Date('2021-05-13T17:46:31.000Z'),
|
||||
previousBookedBalance: '43.56',
|
||||
}
|
||||
|
||||
describe('TransactionReceive', () => {
|
||||
|
||||
@ -53,7 +53,7 @@ import DecayRow from '../TransactionRows/DecayRow'
|
||||
import DecayInformation from '../DecayInformations/DecayInformation'
|
||||
|
||||
export default {
|
||||
name: 'slot-receive',
|
||||
name: 'TransactionReceive',
|
||||
components: {
|
||||
CollapseIcon,
|
||||
TypeIcon,
|
||||
@ -95,6 +95,10 @@ export default {
|
||||
type: Number,
|
||||
required: false,
|
||||
},
|
||||
previousBookedBalance: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
@ -31,6 +31,7 @@ const propsData = {
|
||||
memo: 'sadasd asdasdasdasdadadd da dad aad',
|
||||
typeId: 'SEND',
|
||||
decayStartBlock: new Date('2021-05-13T17:46:31.000Z'),
|
||||
previousBookedBalance: '43.56',
|
||||
}
|
||||
|
||||
describe('TransactionSend', () => {
|
||||
|
||||
@ -53,7 +53,7 @@ import DecayRow from '../TransactionRows/DecayRow'
|
||||
import DecayInformation from '../DecayInformations/DecayInformation'
|
||||
|
||||
export default {
|
||||
name: 'slot-send',
|
||||
name: 'TransactionSend',
|
||||
components: {
|
||||
CollapseIcon,
|
||||
TypeIcon,
|
||||
@ -96,6 +96,10 @@ export default {
|
||||
type: Number,
|
||||
required: false,
|
||||
},
|
||||
previousBookedBalance: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
@ -13,6 +13,6 @@ const amount = (value) => {
|
||||
const GDD = (value) => {
|
||||
value = amount(value)
|
||||
if (value === '') return ''
|
||||
if (!value.match(/^− /)) value = '+ ' + value
|
||||
if (!value.match(/^− /) && !value.match(/^0[.,]00$/)) value = '+ ' + value
|
||||
return value + ' GDD'
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user