Redesign 1 bcrypt #226
3 changed files with 2 additions and 8 deletions
public/assets/js
views/partials
|
@ -42,12 +42,9 @@ function publishNewChannel (event) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
if (error.name === 'ChannelNameError'){
|
if (error.name === 'ChannelNameError' || error.name === 'ChannelPasswordError'){
|
||||||
const channelNameErrorDisplayElement = document.getElementById('input-error-channel-name');
|
const channelNameErrorDisplayElement = document.getElementById('input-error-channel-name');
|
||||||
showError(channelNameErrorDisplayElement, error.message);
|
showError(channelNameErrorDisplayElement, error.message);
|
||||||
} else if (error.name === 'ChannelPasswordError'){
|
|
||||||
const passwordErrorDisplayElement = document.getElementById('input-error-channel-password');
|
|
||||||
showError(passwordErrorDisplayElement, error.message);
|
|
||||||
} else {
|
} else {
|
||||||
console.log('signup failure:', error);
|
console.log('signup failure:', error);
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,7 +177,7 @@ function validateFilePublishSubmission(stagedFiles, claimName, channelName){
|
||||||
if (result) {
|
if (result) {
|
||||||
resolve();
|
resolve();
|
||||||
} else {
|
} else {
|
||||||
reject(new NameError('that url ending is already taken'));
|
reject(new NameError('Sorry, that ending is already taken'));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
|
|
|
@ -17,9 +17,6 @@
|
||||||
<div class="column column--3 column--sml-10">
|
<div class="column column--3 column--sml-10">
|
||||||
<label class="label" for="new-channel-password">Password:</label>
|
<label class="label" for="new-channel-password">Password:</label>
|
||||||
</div><div class="column column--6 column--sml-10">
|
</div><div class="column column--6 column--sml-10">
|
||||||
<div class="info-message-placeholder">
|
|
||||||
<div id="input-error-channel-password" class="info-message info-message--failure"></div>
|
|
||||||
</div>
|
|
||||||
<div class="input-text--primary">
|
<div class="input-text--primary">
|
||||||
<input type="password" name="new-channel-password" id="new-channel-password" class="input-text" placeholder="" value="" >
|
<input type="password" name="new-channel-password" id="new-channel-password" class="input-text" placeholder="" value="" >
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue