Skip to content

Commit

Permalink
Merge branch '3.5' into 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Aug 14, 2017
2 parents 9ea0937 + 6945179 commit a3b72c5
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 2,328 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
],
"require": {
"php": ">= 5.3.3, <7.2",
"composer/installers": "~1.0"
"composer/installers": "~1.0",
"mustangostang/spyc": "^0.6.2"
},
"require-dev": {
"phpunit/PHPUnit": "~3.7"
Expand Down
2 changes: 0 additions & 2 deletions dev/YamlFixture.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

require_once 'thirdparty/spyc/spyc.php';

/**
* Uses the Spyc library to parse a YAML document (see http://yaml.org).
* YAML is a simple markup languages that uses tabs and colons instead of the more verbose XML tags,
Expand Down
5 changes: 3 additions & 2 deletions security/MemberAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ public static function authenticate($data, Form $form = null) {
// when we can rehash passwords to a different hashing algorithm,
// bulk-migration doesn't work due to the nature of hashing.
// See PasswordEncryptor_LegacyPHPHash class.
if($success && $member && isset(self::$migrate_legacy_hashes[$member->PasswordEncryption])) {
$migrateLegacyHashes = self::config()->migrate_legacy_hashes;
if($success && $member && isset($migrateLegacyHashes[$member->PasswordEncryption])) {
$member->Password = $data['Password'];
$member->PasswordEncryption = self::$migrate_legacy_hashes[$member->PasswordEncryption];
$member->PasswordEncryption = $migrateLegacyHashes[$member->PasswordEncryption];
$member->write();
}

Expand Down
5 changes: 5 additions & 0 deletions templates/forms/HtmlEditorField_holder_small.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="fieldholder-small field htmleditor">
<% if $Title %><label class="fieldholder-small-label" <% if $ID %>for="$ID"<% end_if %>>$Title</label><% end_if %>
$Field
<% if $RightTitle %><label class="right fieldholder-small-label" <% if $ID %>for="$ID"<% end_if %>>$RightTitle</label><% end_if %>
</div>
2 changes: 0 additions & 2 deletions thirdparty/spyc/.gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions thirdparty/spyc/.piston.yml

This file was deleted.

159 changes: 0 additions & 159 deletions thirdparty/spyc/README

This file was deleted.

16 changes: 0 additions & 16 deletions thirdparty/spyc/php4/5to4.php

This file was deleted.

Loading

0 comments on commit a3b72c5

Please sign in to comment.