had rather severe security implications due to the way PHP handles static methods as instance methods,
combined with silverstripe's url->method-mapping
(EPIC FALE! on my behalf...)
added Security::checkDefaultAdmin()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42204 467b73ca-7a2a-4603-9d3b-597d59a354a9
respecting Security::setDefaultAdmin() in MemberAuthenticator?
(merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42156 467b73ca-7a2a-4603-9d3b-597d59a354a9
Please update also the stylesheet "openid_login.css" in mysite/css (it's not under version control, so I'll post the content of the file here).
-- openid_login.css --
#OpenIDLoginForm_LoginForm_OpenIDURL {
background: url(../../sapphire/images/openid-small.gif) no-repeat;
background-color: #fff;
background-position: 0 50%;
color: #000;
padding-left: 18px;
width: 284px;
}
#OpenIDDescription {
margin-bottom: 2em;
}
#OpenIDDescription p {
font-size: 1em;
line-height: 1.3em;
margin-top: 0 !important;
}
(merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42095 467b73ca-7a2a-4603-9d3b-597d59a354a9
There was also a bug in the Director class: Director::redirectBack() didn't work because it stopped the script before outputting the headers.
(merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42092 467b73ca-7a2a-4603-9d3b-597d59a354a9
ischommer: merged with ability to provide comma-separated codes, cleaned up some code-formatting
(merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42077 467b73ca-7a2a-4603-9d3b-597d59a354a9
ischommer: Merged in $admin_implies_all
(merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42071 467b73ca-7a2a-4603-9d3b-597d59a354a9
enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file.
(merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42069 467b73ca-7a2a-4603-9d3b-597d59a354a9
There are some (cosmetically) things that should be fixed, but everything work as it should.
Will fix those things after my vacation.
(merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41976 467b73ca-7a2a-4603-9d3b-597d59a354a9
DataObject::addExtension() is now again DataObject::add_ex
(merged from branches/gsoc)
ischommer: naming change already reverted
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41934 467b73ca-7a2a-4603-9d3b-597d59a354a9
The role is applied automatically when the OpenIDAuthenticator is registered.
(merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41911 467b73ca-7a2a-4603-9d3b-597d59a354a9
ischommer: Functionality moved to Object, and DataObject::addExtension is NOT consistent naming! (static methods coding conventions)
Now everything is as described in http://doc.silverstripe.com/doku.php?id=member#new_ideamember_role_decorator.
(merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41841 467b73ca-7a2a-4603-9d3b-597d59a354a9
Also moved the needed change to the PHP include path to the new _config.php file so you don't need to set that anymore in mysite/_config.php.
(merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41824 467b73ca-7a2a-4603-9d3b-597d59a354a9
Notice: Undefined offset: 1 in /var/www/silverstripe-gsoc/sapphire/security/Member.php on line 69
Which causes this error:
FATAL ERROR: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent
At line 40 in /var/www/silverstripe-gsoc/sapphire/security/Member.php
(merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41788 467b73ca-7a2a-4603-9d3b-597d59a354a9
Login forms are now styled and use the tabstrip library.
Make sure you create a CSS file "tabs.css" in your mysite/css folder with the following content, otherwise the tabs will be without border. Maybe it would be a good idea to create a mysite gsoc branch for changes like this. Will post that issue in the forum.
div.tab {
clear: left;
overflow: auto;
border: 1px #AAA solid;
border-top: none;
position: relative;
top: -3px;
margin: 0;
padding: 10px;
/*width: 98%;*/
}
div.tabset {
border: 1px solid #fff; /* Hack for FF1.5/Win Float-Bug */
clear: left;
margin: 0;
}
ul.tabstrip li {
margin-left: 0;
}
(merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41786 467b73ca-7a2a-4603-9d3b-597d59a354a9