Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-kuendig committed Dec 9, 2024
2 parents ff299f4 + fbabe17 commit d4a7390
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

> The all-inclusive e-commerce solution of OctoberCMS.
[![Build Status](https://travis-ci.com/OFFLINE-GmbH/oc-mall-plugin.svg?branch=develop)](https://travis-ci.com/github/OFFLINE-GmbH/oc-mall-plugin)

**Mall** is a fully featured online shop solution for October CMS.

- Manage Products and Variants
Expand Down
3 changes: 3 additions & 0 deletions classes/customer/DefaultSignUpHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ protected function createUser($data, $requiresConfirmation)
if (class_exists(\RainLab\User\Models\Setting::class)) {
$data['first_name'] = $data['firstname'];
$data['last_name'] = $data['lastname'];

unset($data['name']);
unset($data['surname']);
}

$user = Auth::register($data, ! $requiresConfirmation);
Expand Down
9 changes: 9 additions & 0 deletions components/CustomerProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ public function onSubmit()
$this->user->surname = $data['lastname'];
$this->user->email = $data['email'];

// RainLab.User 3.0
if (class_exists(\RainLab\User\Models\Setting::class)) {
$this->user->first_name = $data['firstname'];
$this->user->last_name = $data['lastname'];

unset($this->user->name);
unset($this->user->surname);
}

if ($data['password']) {
$this->user->password = $data['password'];
$this->user->password_confirmation = $data['password_repeat'];
Expand Down
2 changes: 2 additions & 0 deletions updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -625,3 +625,5 @@ v3.5.11:
- 'Various small bugfixes'
v3.5.12:
- 'Various small additions (thanks to @RickAcb and @rubenvanerk)'
v3.5.13:
- 'Fixed RainLab.User v3 compatibility'

0 comments on commit d4a7390

Please sign in to comment.