@@ -1306,7 +1306,7 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
1306
1306
//
1307
1307
// If the SQLITE_USER table is not present in the database file, then
1308
1308
// this interface is a harmless no-op returnning SQLITE_OK.
1309
- if err := conn .RegisterFunc ("authenticate" , conn .authenticate , false ); err != nil {
1309
+ if err := conn .RegisterFunc ("authenticate" , conn .authenticate , true ); err != nil {
1310
1310
return nil , err
1311
1311
}
1312
1312
//
@@ -1319,7 +1319,7 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
1319
1319
// The AuthUserAdd only works for the "main" database, not
1320
1320
// for any ATTACH-ed databases. Any call to AuthUserAdd by a
1321
1321
// non-admin user results in an error.
1322
- if err := conn .RegisterFunc ("auth_user_add" , conn .authUserAdd , false ); err != nil {
1322
+ if err := conn .RegisterFunc ("auth_user_add" , conn .authUserAdd , true ); err != nil {
1323
1323
return nil , err
1324
1324
}
1325
1325
//
@@ -1329,7 +1329,7 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
1329
1329
// login credentials. Only an admin user can change another users login
1330
1330
// credentials or admin privilege setting. No user may change their own
1331
1331
// admin privilege setting.
1332
- if err := conn .RegisterFunc ("auth_user_change" , conn .authUserChange , false ); err != nil {
1332
+ if err := conn .RegisterFunc ("auth_user_change" , conn .authUserChange , true ); err != nil {
1333
1333
return nil , err
1334
1334
}
1335
1335
//
@@ -1339,13 +1339,13 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
1339
1339
// which guarantees that there is always an admin user and hence that
1340
1340
// the database cannot be converted into a no-authentication-required
1341
1341
// database.
1342
- if err := conn .RegisterFunc ("auth_user_delete" , conn .authUserDelete , false ); err != nil {
1342
+ if err := conn .RegisterFunc ("auth_user_delete" , conn .authUserDelete , true ); err != nil {
1343
1343
return nil , err
1344
1344
}
1345
1345
1346
1346
// Register: auth_enabled
1347
1347
// auth_enabled can be used to check if user authentication is enabled
1348
- if err := conn .RegisterFunc ("auth_enabled" , conn .authEnabled , false ); err != nil {
1348
+ if err := conn .RegisterFunc ("auth_enabled" , conn .authEnabled , true ); err != nil {
1349
1349
return nil , err
1350
1350
}
1351
1351
0 commit comments