Merge pull request #2 from ivandiazwm/master
Bug fixing and Improvements
This commit is contained in:
commit
57ed917f54
|
@ -27,7 +27,7 @@ class AreYouSure extends React.Component {
|
|||
password: ''
|
||||
};
|
||||
|
||||
static openModal(description, onYes, type) {
|
||||
static openModal(description, onYes, type = 'default') {
|
||||
ModalContainer.openModal(
|
||||
<AreYouSure description={description} onYes={onYes} type={type}/>,
|
||||
true
|
||||
|
|
|
@ -151,10 +151,10 @@ class TicketViewer extends React.Component {
|
|||
{i18n(priorities[this.props.ticket.priority || 'low'])}
|
||||
</div>
|
||||
<div className="col-md-4">
|
||||
{(ticket.owner) ? ticket.owner.name : i18n('NONE')}
|
||||
{this.renderOwnerNode()}
|
||||
</div>
|
||||
<div className="col-md-4">
|
||||
{this.renderOwnerNode()}
|
||||
{i18n((this.props.ticket.closed) ? 'CLOSED' : 'OPENED')}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -171,7 +171,7 @@ class TicketViewer extends React.Component {
|
|||
</Button>
|
||||
);
|
||||
} else {
|
||||
ownerNode = i18n((this.props.ticket.closed) ? 'CLOSED' : 'OPENED');
|
||||
ownerNode = (this.props.ticket.owner) ? this.props.ticket.owner.name : i18n('NONE')
|
||||
}
|
||||
|
||||
return ownerNode;
|
||||
|
|
|
@ -72,7 +72,7 @@ class TopicViewer extends React.Component {
|
|||
|
||||
renderDeleteButton() {
|
||||
return (
|
||||
<span onClick={AreYouSure.openModal.bind(this, i18n('DELETE_TOPIC_DESCRIPTION'), this.onDeleteClick.bind(this))}>
|
||||
<span onClick={() => AreYouSure.openModal(i18n('DELETE_TOPIC_DESCRIPTION'), this.onDeleteClick.bind(this))}>
|
||||
<Icon className="topic-viewer__edit-icon" name="trash" />
|
||||
</span>
|
||||
);
|
||||
|
|
|
@ -198,7 +198,7 @@ class StaffEditor extends React.Component {
|
|||
<div className="staff-editor__delete-title">
|
||||
{i18n('DELETE_STAFF_MEMBER')}
|
||||
</div>
|
||||
<Button onClick={AreYouSure.openModal.bind(this, i18n('WILL_DELETE_STAFF'), this.onDeleteClick.bind(this))}>
|
||||
<Button onClick={() => AreYouSure.openModal(i18n('WILL_DELETE_STAFF'), this.onDeleteClick.bind(this))}>
|
||||
{i18n('DELETE_STAFF_MEMBER')}
|
||||
</Button>
|
||||
</div>
|
||||
|
|
|
@ -136,7 +136,7 @@
|
|||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 180px;
|
||||
min-width: 180px;
|
||||
}
|
||||
|
||||
&__update-email,
|
||||
|
|
|
@ -64,7 +64,9 @@ class InstallStep4UserSystem extends React.Component {
|
|||
}
|
||||
}).then(() => this.setState({
|
||||
loading: false
|
||||
}, () => history.push('/install/step-5'))));
|
||||
}, () => history.push('/install/step-5'))).catch(() => this.setState({
|
||||
loading: false
|
||||
})));
|
||||
}
|
||||
|
||||
isDisabled() {
|
||||
|
|
|
@ -10,9 +10,11 @@ import Message from 'core-components/message';
|
|||
class InstallStep6Completed extends React.Component {
|
||||
|
||||
componentDidMount() {
|
||||
store.dispatch(ConfigActions.init());
|
||||
|
||||
setTimeout(() => {
|
||||
store.dispatch(ConfigActions.checkInstallation());
|
||||
}, 5000);
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
|
@ -68,7 +68,7 @@ class MainHomePageLoginWidget extends React.Component {
|
|||
<Widget className="main-home-page__widget login-widget_password" title={i18n('RECOVER_PASSWORD')} ref="recoverWidget">
|
||||
<Form {...this.getRecoverFormProps()}>
|
||||
<div className="login-widget__inputs">
|
||||
<FormField placeholder="email" name="email" className="login-widget__input" validation="EMAIL" required/>
|
||||
<FormField placeholder={i18n('EMAIL_LOWERCASE')} name="email" className="login-widget__input" validation="EMAIL" required/>
|
||||
</div>
|
||||
<div className="login-widget__submit-button">
|
||||
<SubmitButton type="primary">{i18n('RECOVER_PASSWORD')}</SubmitButton>
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
.main-layout-header {
|
||||
background-color: $primary-blue;
|
||||
border-radius: 4px 4px 0 0;
|
||||
height: 32px;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
|
||||
&__user-name {
|
||||
color: $primary-red;
|
||||
|
@ -19,9 +19,16 @@
|
|||
}
|
||||
|
||||
&__languages {
|
||||
display: inline-block;
|
||||
float: right;
|
||||
position: relative;
|
||||
top: 5px;
|
||||
left: -6px;
|
||||
margin: 0 6px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 500px) {
|
||||
.main-layout-header__languages {
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
.main-signup-page {
|
||||
height: 669px;
|
||||
min-height: 669px;
|
||||
|
||||
.signup-widget {
|
||||
padding: 30px;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
.input {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
|
||||
&__text {
|
||||
border: 1px solid $grey;
|
||||
|
@ -20,7 +21,7 @@
|
|||
}
|
||||
|
||||
&_auto {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
&_small {
|
||||
|
|
|
@ -47,7 +47,7 @@ export default {
|
|||
data: turkishLanguage
|
||||
},
|
||||
'in': {
|
||||
name: 'Indian',
|
||||
name: 'Hindi',
|
||||
data: indianLanguage
|
||||
}
|
||||
};
|
|
@ -66,7 +66,7 @@ export default {
|
|||
'DELETE': 'Borrar',
|
||||
'LANGUAGE': 'Idioma',
|
||||
'OWNER': 'Propietario',
|
||||
'OWNED': 'Propiedad',
|
||||
'OWNED': 'Asignado',
|
||||
'STATUS': 'Estado',
|
||||
'NONE': 'Ninguno',
|
||||
'OPENED': 'Abierto',
|
||||
|
|
|
@ -11,7 +11,7 @@ class AddTopicController extends Controller {
|
|||
'permission' => 'staff_2',
|
||||
'requestData' => [
|
||||
'name' => [
|
||||
'validation' => DataValidator::length(3, 40),
|
||||
'validation' => DataValidator::length(3, 100),
|
||||
'error' => ERRORS::INVALID_NAME
|
||||
]
|
||||
]
|
||||
|
|
|
@ -11,7 +11,7 @@ class AddArticleController extends Controller {
|
|||
'permission' => 'staff_2',
|
||||
'requestData' => [
|
||||
'title' => [
|
||||
'validation' => DataValidator::length(3, 40),
|
||||
'validation' => DataValidator::length(3, 100),
|
||||
'error' => ERRORS::INVALID_NAME
|
||||
],
|
||||
'content' => [
|
||||
|
|
|
@ -65,7 +65,8 @@ class RecoverPasswordController extends Controller {
|
|||
|
||||
$mailSender->setTemplate(MailTemplate::USER_PASSWORD, [
|
||||
'to' => $this->user->email,
|
||||
'name' => $this->user->name,
|
||||
'url' => Setting::getSetting('url')->getValue(),
|
||||
'name' => $this->user->name
|
||||
]);
|
||||
|
||||
$mailSender->send();
|
||||
|
|
|
@ -340,7 +340,7 @@
|
|||
<table cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td style="padding-bottom: 30px;">
|
||||
使用此代码 {{url}}/recover-password?email={{email}}&token={{token}} 或单击下面的按钮.
|
||||
使用此代码 {{url}}/recover-password?email={{to}}&token={{token}} 或单击下面的按钮.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -351,11 +351,11 @@
|
|||
<tr>
|
||||
<td class="button">
|
||||
<div><!--[if mso]>
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{email}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{to}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<w:anchorlock/>
|
||||
<center style="color:#ffffff;font-family:Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;">恢复密码</center>
|
||||
</v:roundrect>
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{email}}&token={{token}}"
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{to}}&token={{token}}"
|
||||
style="background-color:#ff6f6f;border-radius:5px;color:#ffffff;display:inline-block;font-family:'Cabin', Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;line-height:45px;text-align:center;text-decoration:none;width:155px;-webkit-text-size-adjust:none;mso-hide:all;">恢复密码</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -340,7 +340,7 @@
|
|||
<table cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td style="padding-bottom: 30px;">
|
||||
Verwenden Sie diesen Code in {{url}}/recover-password?email={{email}}&token={{token}} oder klicken Sie auf die Schaltfläche unten.
|
||||
Verwenden Sie diesen Code in {{url}}/recover-password?email={{to}}&token={{token}} oder klicken Sie auf die Schaltfläche unten.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -351,11 +351,11 @@
|
|||
<tr>
|
||||
<td class="button">
|
||||
<div><!--[if mso]>
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{email}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{to}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<w:anchorlock/>
|
||||
<center style="color:#ffffff;font-family:Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;">Passwort wiederherstellen</center>
|
||||
</v:roundrect>
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{email}}&token={{token}}"
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{to}}&token={{token}}"
|
||||
style="background-color:#ff6f6f;border-radius:5px;color:#ffffff;display:inline-block;font-family:'Cabin', Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;line-height:45px;text-align:center;text-decoration:none;width:155px;-webkit-text-size-adjust:none;mso-hide:all;">Passwort wiederherstellen</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -340,7 +340,7 @@
|
|||
<table cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td style="padding-bottom: 30px;">
|
||||
Use this code in {{url}}/recover-password?email={{email}}&token={{token}} or click the button below.
|
||||
Use this code in {{url}}/recover-password?email={{to}}&token={{token}} or click the button below.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -351,11 +351,11 @@
|
|||
<tr>
|
||||
<td class="button">
|
||||
<div><!--[if mso]>
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{email}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{to}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<w:anchorlock/>
|
||||
<center style="color:#ffffff;font-family:Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;">Recover password</center>
|
||||
</v:roundrect>
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{email}}&token={{token}}"
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{to}}&token={{token}}"
|
||||
style="background-color:#ff6f6f;border-radius:5px;color:#ffffff;display:inline-block;font-family:'Cabin', Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;line-height:45px;text-align:center;text-decoration:none;width:155px;-webkit-text-size-adjust:none;mso-hide:all;">Recover password</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -340,7 +340,7 @@
|
|||
<table cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td style="padding-bottom: 30px;">
|
||||
Usá este codigo en {{url}}/recover-password?email={{email}}&token={{token}} o hacé click en el botón de abajo.
|
||||
Usá este codigo en {{url}}/recover-password?email={{to}}&token={{token}} o hacé click en el botón de abajo.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -351,11 +351,11 @@
|
|||
<tr>
|
||||
<td class="button">
|
||||
<div><!--[if mso]>
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{email}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{to}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<w:anchorlock/>
|
||||
<center style="color:#ffffff;font-family:Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;">Recuperar contraseña</center>
|
||||
</v:roundrect>
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{email}}&token={{token}}"
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{to}}&token={{token}}"
|
||||
style="background-color:#ff6f6f;border-radius:5px;color:#ffffff;display:inline-block;font-family:'Cabin', Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;line-height:45px;text-align:center;text-decoration:none;width:155px;-webkit-text-size-adjust:none;mso-hide:all;">Recuperar contraseña</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -340,7 +340,7 @@
|
|||
<table cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td style="padding-bottom: 30px;">
|
||||
Utilisez ce code dans {{url}}/recover-password?email={{email}}&token={{token}} ou cliquez sur le bouton ci-dessous.
|
||||
Utilisez ce code dans {{url}}/recover-password?email={{to}}&token={{token}} ou cliquez sur le bouton ci-dessous.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -351,11 +351,11 @@
|
|||
<tr>
|
||||
<td class="button">
|
||||
<div><!--[if mso]>
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{email}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{to}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<w:anchorlock/>
|
||||
<center style="color:#ffffff;font-family:Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;">Récupérer mot de passe</center>
|
||||
</v:roundrect>
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{email}}&token={{token}}"
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{to}}/recover-password?email={{to}}&token={{token}}"
|
||||
style="background-color:#ff6f6f;border-radius:5px;color:#ffffff;display:inline-block;font-family:'Cabin', Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;line-height:45px;text-align:center;text-decoration:none;width:155px;-webkit-text-size-adjust:none;mso-hide:all;">Récupérer mot de passe</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -341,7 +341,7 @@
|
|||
<table cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td style="padding-bottom: 30px;">
|
||||
इस कोड का उपयोग करें {{url}}/recover-password?email={{email}}&token={{token}} या नीचे दिए गए बटन पर क्लिक करें.
|
||||
इस कोड का उपयोग करें {{url}}/recover-password?email={{to}}&token={{token}} या नीचे दिए गए बटन पर क्लिक करें.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -352,11 +352,11 @@
|
|||
<tr>
|
||||
<td class="button">
|
||||
<div><!--[if mso]>
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{email}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{to}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<w:anchorlock/>
|
||||
<center style="color:#ffffff;font-family:Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;">गोपनीय शब्द पुन प्राप्त करे</center>
|
||||
</v:roundrect>
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{email}}&token={{token}}"
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{to}}&token={{token}}"
|
||||
style="background-color:#ff6f6f;border-radius:5px;color:#ffffff;display:inline-block;font-family:'Cabin', Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;line-height:45px;text-align:center;text-decoration:none;width:155px;-webkit-text-size-adjust:none;mso-hide:all;">गोपनीय शब्द पुन प्राप्त करे</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -340,7 +340,7 @@
|
|||
<table cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td style="padding-bottom: 30px;">
|
||||
でこのコードを使用 {{url}}/recover-password?email={{email}}&token={{token}} 下のボタンをクリックしてください.
|
||||
でこのコードを使用 {{url}}/recover-password?email={{to}}&token={{token}} 下のボタンをクリックしてください.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -351,11 +351,11 @@
|
|||
<tr>
|
||||
<td class="button">
|
||||
<div><!--[if mso]>
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{email}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{to}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<w:anchorlock/>
|
||||
<center style="color:#ffffff;font-family:Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;">パスワードを回復</center>
|
||||
</v:roundrect>
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{email}}&token={{token}}"
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{to}}&token={{token}}"
|
||||
style="background-color:#ff6f6f;border-radius:5px;color:#ffffff;display:inline-block;font-family:'Cabin', Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;line-height:45px;text-align:center;text-decoration:none;width:155px;-webkit-text-size-adjust:none;mso-hide:all;">パスワードを回復</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -340,7 +340,7 @@
|
|||
<table cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td style="padding-bottom: 30px;">
|
||||
Use este código em {{url}}/recover-password?email={{email}}&token={{token}} ou clique no botão abaixo.
|
||||
Use este código em {{url}}/recover-password?email={{to}}&token={{token}} ou clique no botão abaixo.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -351,11 +351,11 @@
|
|||
<tr>
|
||||
<td class="button">
|
||||
<div><!--[if mso]>
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{email}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{to}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<w:anchorlock/>
|
||||
<center style="color:#ffffff;font-family:Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;">Recuperar senha</center>
|
||||
</v:roundrect>
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{email}}&token={{token}}"
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{to}}&token={{token}}"
|
||||
style="background-color:#ff6f6f;border-radius:5px;color:#ffffff;display:inline-block;font-family:'Cabin', Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;line-height:45px;text-align:center;text-decoration:none;width:155px;-webkit-text-size-adjust:none;mso-hide:all;">Recuperar senha</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -340,7 +340,7 @@
|
|||
<table cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td style="padding-bottom: 30px;">
|
||||
Используйте этот код в {{url}}/recover-password?email={{email}}&token={{token}} или нажмите кнопку ниже.
|
||||
Используйте этот код в {{url}}/recover-password?email={{to}}&token={{token}} или нажмите кнопку ниже.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -351,11 +351,11 @@
|
|||
<tr>
|
||||
<td class="button">
|
||||
<div><!--[if mso]>
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{email}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{to}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<w:anchorlock/>
|
||||
<center style="color:#ffffff;font-family:Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;">Восстановить пароль</center>
|
||||
</v:roundrect>
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{email}}&token={{token}}"
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{to}}&token={{token}}"
|
||||
style="background-color:#ff6f6f;border-radius:5px;color:#ffffff;display:inline-block;font-family:'Cabin', Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;line-height:45px;text-align:center;text-decoration:none;width:155px;-webkit-text-size-adjust:none;mso-hide:all;">Восстановить пароль</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -340,7 +340,7 @@
|
|||
<table cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td style="padding-bottom: 30px;">
|
||||
Bu kodu şu adreste kullanın {{url}}/recover-password?email={{email}}&token={{token}} veya aşağıdaki butona tıklayın.
|
||||
Bu kodu şu adreste kullanın {{url}}/recover-password?email={{to}}&token={{token}} veya aşağıdaki butona tıklayın.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -351,11 +351,11 @@
|
|||
<tr>
|
||||
<td class="button">
|
||||
<div><!--[if mso]>
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{email}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}/recover-password?email={{to}}&token={{token}}" style="height:45px;v-text-anchor:middle;width:155px;" arcsize="15%" strokecolor="#ffffff" fillcolor="#ff6f6f">
|
||||
<w:anchorlock/>
|
||||
<center style="color:#ffffff;font-family:Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;">Şifre kurtarma</center>
|
||||
</v:roundrect>
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{email}}&token={{token}}"
|
||||
<![endif]--><a class="button-mobile" target="_blank" href="{{url}}/recover-password?email={{to}}&token={{token}}"
|
||||
style="background-color:#ff6f6f;border-radius:5px;color:#ffffff;display:inline-block;font-family:'Cabin', Helvetica, Arial, sans-serif;font-size:14px;font-weight:regular;line-height:45px;text-align:center;text-decoration:none;width:155px;-webkit-text-size-adjust:none;mso-hide:all;">Şifre kurtarma</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -83,6 +83,9 @@ describe 'Article path' do
|
|||
})
|
||||
(result['status']).should.equal('success')
|
||||
|
||||
article = $database.getRow('article', @article_id)
|
||||
(article).should.equal(nil)
|
||||
|
||||
lastLog = $database.getLastRow('log')
|
||||
(lastLog['type']).should.equal('DELETE_ARTICLE')
|
||||
end
|
||||
|
|
|
@ -48,6 +48,9 @@ describe 'Topic paths' do
|
|||
|
||||
(result['status']).should.equal('success')
|
||||
|
||||
topic = $database.getRow('topic', 1)
|
||||
(topic).should.equal(nil)
|
||||
|
||||
lastLog = $database.getLastRow('log')
|
||||
(lastLog['type']).should.equal('DELETE_TOPIC')
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue