Fully remove the Strengthify integration

This commit is contained in:
James Brooks 2019-01-26 11:17:02 +00:00
parent 78ae11897c
commit c0d9d9ceb8
5 changed files with 2 additions and 54 deletions

View File

@ -327,9 +327,6 @@ $(function () {
.addClass("active");
}
// Password strength
$('.password-strength').strengthify();
// Check for updates.
if ($('#update-alert').length > 0) {
$.ajax({

View File

@ -22,6 +22,5 @@
@import "plugins/sweetalert";
@import "plugins/messenger";
@import "plugins/animate";
@import "plugins/password-strength";
@import "plugins/sortable";
/*! purgecss end ignore */

View File

@ -1,46 +0,0 @@
.strengthify-wrapper > * {
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
opacity: 0;
-webkit-transition:all .5s ease-in-out;
-moz-transition:all .5s ease-in-out;
transition:all .5s ease-in-out;
}
.strengthify-wrapper {
position: relative;
}
.strengthify-bg, .strengthify-container, .strengthify-wrapper, .strengthify-separator {
height: 8px;
}
.strengthify-bg, .strengthify-container {
display: block;
position: absolute;
width: 100%;
}
.strengthify-bg {
background-color: #eeeeee;
}
.strengthify-separator {
display: inline-block;
position: absolute;
background-color: #ffffff;
width: 2px;
z-index: 10;
}
.password-bad {
background-color: $cachet-red;
}
.password-medium {
background-color: $cachet-yellow;
}
.password-good {
background-color: $cachet-green;
}

View File

@ -26,8 +26,7 @@
</div>
<div class="form-group">
<label>{{ trans('forms.user.password') }}</label>
<input type="password" class="form-control password-strength" name="password" value="" {{ !$currentUser->isAdmin ? "disabled": "" }} placeholder="{{ trans('forms.user.password') }}">
<div class="strengthify-wrapper"></div>
<input type="password" class="form-control" name="password" value="" {{ !$currentUser->isAdmin ? "disabled": "" }} placeholder="{{ trans('forms.user.password') }}">
</div>
@if($currentUser->isAdmin)
<div class="form-group">

View File

@ -205,8 +205,7 @@
</div>
<div class="form-group">
<label>{{ trans("forms.setup.password") }}</label>
<input type="password" name="user[password]" class="form-control password-strength" placeholder="{{ trans('forms.setup.password') }}" value="{{ Binput::old('user.password', '') }}" required>
<div class="strengthify-wrapper"></div>
<input type="password" name="user[password]" class="form-control" placeholder="{{ trans('forms.setup.password') }}" value="{{ Binput::old('user.password', '') }}" required>
@if($errors->has('user.password'))
<span class="text-danger">{{ $errors->first('user.password') }}</span>
@endif