Skip to content

Commit

Permalink
build v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sualko committed Feb 14, 2017
1 parent 644a8fe commit 9371ad3
Show file tree
Hide file tree
Showing 16 changed files with 764 additions and 2,068 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## 3.1.0 - 2017-02-14
### Added
- add option to use user email as jid
- add option to add external services
Expand All @@ -18,7 +20,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- fix user setting retrieval

### Changed
- upgrade jsxc to v3.1.0
- upgrade jsxc to v3.1.0 ([change log](https://github.com/jsxc/jsxc/blob/master/CHANGELOG.md))
- change category to social
- minor settings redesign
- use nc colors
Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>JavaScript XMPP Chat</name>
<summary>Facebook-like chat</summary>
<description>Facebook-like chat with end-to-end encrypted conversation, video calls, multi-user rooms, XMPP and internal server backend.</description>
<version>3.1.0-beta.2</version>
<version>3.1.0</version>
<licence>agpl</licence>
<author mail="[email protected]">Klaus Herberth</author>
<author>Tobia De Koninck</author>
Expand Down
19 changes: 11 additions & 8 deletions build/ajax/getSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,23 @@ function validateBoolean($val)

OCP\JSON::callCheck();

$username = $_POST ['username'];
$password = $_POST ['password'];
$currentUser = false;

$ocUser = new OCP\User();

$auth = ($password !== null) ? $ocUser->checkPassword($username, $password) : OCP\User::isLoggedIn();
if(!empty($_POST['password']) && !empty($_POST['username'])) {
$currentUser = \OC::$server->getUserManager()->checkPassword($_POST['username'], $_POST['password']);
} else if (OCP\User::isLoggedIn()) {
$currentUser = \OC::$server->getUserSession()->getUser();
}

if (!$auth) {
if (!$currentUser) {
echo json_encode(array(
'result' => 'noauth',
));
exit();
}

$currentUID = $currentUser->getUID();

$config = \OC::$server->getConfig();

$data = array();
Expand All @@ -49,7 +52,7 @@ function validateBoolean($val)
$data ['xmpp'] ['onlogin'] = null;

if (validateBoolean($config->getAppValue('ojsxc', 'xmppPreferMail'))) {
$mail = $config->getUserValue($username,'settings','email');
$mail = $config->getUserValue($currentUID,'settings','email');

if ($mail !== null) {
list($u, $d) = explode("@", $mail, 2);
Expand All @@ -60,7 +63,7 @@ function validateBoolean($val)
}
}

$options = $config->getUserValue($username, 'ojsxc', 'options');
$options = $config->getUserValue($currentUID, 'ojsxc', 'options');

if ($options !== null) {
$options = (array) json_decode($options, true);
Expand Down
2 changes: 1 addition & 1 deletion build/appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>JavaScript XMPP Chat</name>
<summary>Facebook-like chat</summary>
<description>Facebook-like chat with end-to-end encrypted conversation, video calls, multi-user rooms, XMPP and internal server backend.</description>
<version>3.1.0-beta.2</version>
<version>3.1.0</version>
<licence>agpl</licence>
<author mail="[email protected]">Klaus Herberth</author>
<author>Tobia De Koninck</author>
Expand Down
4 changes: 2 additions & 2 deletions build/css/jsxc.oc.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*!
* ojsxc v3.1.0-beta.2 - 2017-02-10
* ojsxc v3.1.0 - 2017-02-14
*
* Copyright (c) 2017 Klaus Herberth <[email protected]> <br>
* Released under the MIT license
*
* Please see http://www.jsxc.org/
*
* @author Klaus Herberth <[email protected]>
* @version 3.1.0-beta.2
* @version 3.1.0
* @license MIT
*/

Expand Down
4 changes: 2 additions & 2 deletions build/js/admin.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*!
* ojsxc v3.1.0-beta.2 - 2017-02-10
* ojsxc v3.1.0 - 2017-02-14
*
* Copyright (c) 2017 Klaus Herberth <[email protected]> <br>
* Released under the MIT license
*
* Please see http://www.jsxc.org/
*
* @author Klaus Herberth <[email protected]>
* @version 3.1.0-beta.2
* @version 3.1.0
* @license MIT
*/

Expand Down
4 changes: 2 additions & 2 deletions build/js/eof.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*!
* ojsxc v3.1.0-beta.2 - 2017-02-10
* ojsxc v3.1.0 - 2017-02-14
*
* Copyright (c) 2017 Klaus Herberth <[email protected]> <br>
* Released under the MIT license
*
* Please see http://www.jsxc.org/
*
* @author Klaus Herberth <[email protected]>
* @version 3.1.0-beta.2
* @version 3.1.0
* @license MIT
*/

Expand Down
6 changes: 3 additions & 3 deletions build/js/jsxc/jsxc.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*!
* jsxc v3.1.0-beta.2 - 2017-02-10
* jsxc v3.1.0 - 2017-02-14
*
* Copyright (c) 2017 Klaus Herberth <[email protected]> <br>
* Released under the MIT license
*
* Please see http://www.jsxc.org/
*
* @author Klaus Herberth <[email protected]>
* @version 3.1.0-beta.2
* @version 3.1.0
* @license MIT
*/

Expand All @@ -25,7 +25,7 @@ var jsxc = null, RTC = null, RTCPeerconnection = null;
*/
jsxc = {
/** Version of jsxc */
version: '3.1.0-beta.2',
version: '3.1.0',

/** True if i'm the master */
master: false,
Expand Down
6 changes: 3 additions & 3 deletions build/js/jsxc/jsxc.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/js/jsxc/jsxc.min.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 9371ad3

Please sign in to comment.