mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-03 10:58:50 +03:00
Use SNAPPYMAIL_INCLUDE_AS_API and added SSO test
This commit is contained in:
parent
dd6779b1a8
commit
7f084dda53
4 changed files with 29 additions and 8 deletions
|
|
@ -158,7 +158,7 @@ if (!defined('RAINLOOP_APP_LIBRARIES_PATH')) {
|
|||
if (class_exists('RainLoop\\Api')) {
|
||||
RainLoop\Api::Handle();
|
||||
// NextCloud/OwnCloud?
|
||||
if (empty($_ENV['RAINLOOP_INCLUDE_AS_API'])) {
|
||||
if (empty($_ENV['SNAPPYMAIL_INCLUDE_AS_API'])) {
|
||||
RainLoop\Service::Handle();
|
||||
exit(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue